/ Published in: Bash
Quick Look is the little window you get in Finder when you select a file and press the space bar. You can get the same from the command line with the following command (-p is a full window, -t is a thumbnail). You can even output it to a file with the -o option
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
qlmanage -p /PATH/TO/FILE/.txt|pdf|mp3|etc... qlmanage -t /PATH/TO/FILE/.txt|pdf|mp3|etc...