Linux Commands Helper
💬 Your AI-powered Linux assistant
lpq Command - Show Printer Queue Status
The lpq command displays the status of the print queue for a printer. It shows a list of print jobs waiting to be printed, including job IDs, owners, and file names.
Syntax
lpq [options] [-P printer]
Examples
lpq
Show the default printer's queue.
lpq -P printer1
Show the queue for printer1.
Notes
- Useful for checking the status of print jobs and troubleshooting printing issues.
- Works with both BSD and System V printing systems.
- Related commands:
lpr
to submit jobs,lprm
to remove jobs.