Forrest logo
back to the qlmanage tool

qlmanage:tldr:3c562

qlmanage: Display QuickLook for one or multiple files.
$ qlmanage -p ${filename1 filename2 ---}
try on your machine

The command "qlmanage -p ${filename1 filename2 ---}" is used to open and preview multiple files using the Quick Look feature in macOS.

Here's a breakdown of the command:

  • qlmanage: This is the executable command for Quick Look, a macOS feature that allows users to preview files without opening a specific application for that file type.

  • -p: This flag is used to open the files in Quick Look preview mode.

  • ${filename1 filename2 ---}: This part of the command represents the files you want to preview. Replace ${filename1 filename2 ---} with the actual path and names of the files you want to open. You can specify multiple files by separating their names with spaces.

For example, if you want to preview two files named "document1.pdf" and "image.png", you would run the command as follows:

qlmanage -p document1.pdf image.png

This command will open the specified files in Quick Look preview windows, allowing you to quickly view their contents without fully opening them in their respective applications.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the qlmanage tool