Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

This question already has an answer here:

What's the command that, given a document name, will open it with the right application (i.e. an equivalent to windows start / mac os x open)

share|improve this question

marked as duplicate by Radu Rădeanu command-line Jun 21 '14 at 18:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

By "document" I meant any non-executable file, including PNG, MP3, or whatever – Matt Gregory Jun 21 '14 at 15:35

2 Answers 2

up vote 10 down vote accepted

Try xdg-open file this should open the file with the correct program, that is defined via mimetypes

share|improve this answer
Perfect! Thank you! – Matt Gregory Jun 21 '14 at 15:34

I think you mean Document Viewer. The command name is evince. Optionally with filename as argument. More at manpage.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.