Quick Look a File from the Terminal with qlmanage -p

Open the same spacebar preview you use in Finder, but launched from the shell.

macOSqlmanageFilesLow risk
Run qlmanage -p followed by the file path to pop up a Quick Look preview window.

01Command

Command
$ qlmanage -p ~/Desktop/report.pdf

02What it does

qlmanage -p renders PDFs, images, documents, and any format that has a Quick Look plugin — the exact same view as pressing spacebar in Finder. Pass several paths at once to preview them together. Inside the window, arrow keys page through multiple files and q closes it. This is handy when you are already in the Terminal and just want to confirm a download worked.

03Risk

RiskLow risk
!Warning: A few formats (like some raw video) show only a generic icon if no Quick Look generator is installed.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-09-18 · Category: Files & Folders

06Related solutions