Macos – Open file with Quick Look from command shell

macmacosquicklookterminal

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?

Best Answer

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