Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 17 down vote accepted

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

share|improve this answer

Your Answer


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.