Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm working using LaTeX, since I compile the document in the terminal, it would be much easier for me to open it in pdf viewer directly from the terminal.

I'm using OS X 10.8.2 in Polish, so I'm not sure of the English name of the viewer I'm using, but it's the default one, I guess it's Preview in English. But the command preview <filename.pdf> results in -bash: preview: command not found.

share|improve this question

1 Answer 1

up vote 6 down vote accepted

You can just use open <filename.pdf> and your OS will use the default program to view PDFs. With open -a Preview.app <filename.pdf> your PDF is opened using Preview, even if your default PDF reader is something different.

share|improve this answer

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.