7

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?

1 Answer 1

14

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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