Quick Look - a function to preview file contents without opening it, added in version 10.5. This is very a handy thing that saves your time as it does not have to run the application, corresponding to different types of files.
A quick scan can be run from the command line using the following command:
qlmanage -p filename.jpg
Substitute filename.jpg the name of the file you want. the file type can be almost anything (anything that is compatible with Quick Look).
Below is a full list of what you can do with qlmanage teams using different parameters:
qlmanage [option] path to the file ...
-h Help
-r Force reboot generator icons
-p Preview document
-t Show file thumbnail
-s size thumbnail file size
-f factor sketch Scale
-c contentTypeUTI Compulsory indication of the type of content in open documents
-g generator Forced icon generator
Note that you can run the Quick Look feature in the background, allowing you to continue to use the terminal in a familiar way. To do this, run the following command:
qlmanage -p filename.jpg &