Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Mac OS X has the very convenient open command to open any file from the command line in the same way that the Finder would.

thilo$ open a.pdf

Is there a similar command for opening the file with Quick Look?

share|improve this question
up vote 6 down vote accepted

qlmanage -p file will do what you want, I think.

share|improve this answer
qlmanage -p /PATH/TO/FILE works like a charm. If you need more info check man qlmanage – Chealion Jan 9 '10 at 8:39
Nice. I'll alias that to "ql". – Thilo Jan 10 '10 at 0:56
I have it aliased to qlmanage -p 2>/dev/null to suppress error messages. – Doug Harris Feb 25 '10 at 16:56

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.