Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there are way to use the MacOS command open to open files with their default applications like e.g. open mytext.pdf or open myprogramm.java. Can Ubuntu be extended in this way?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Try xdg-open <your-file>.

   xdg-open opens a file or URL in the user's preferred application. If a
   URL is provided the URL will be opened in the user's preferred web
   browser. If a file is provided the file will be opened in the preferred
   application for files of that type. xdg-open supports file, ftp, http
   and https URLs.
share|improve this answer
    
Thanks! Exactly what is was looking for! –  joachim Jun 5 '12 at 14:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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