On Unix-like operating systems, the lpq command lists the status of all available printers.
Description
lpq shows the current print queue status on the named printer. Jobs queued on the default destination are shown if no printer or class is specified on the command-line.
- Description
- Syntax
- Examples
- Related commands
- Linux commands help
The +interval option lets you continuously report the jobs in the queue until the queue is empty; the list of jobs is shown once every interval seconds.
Syntax
lpq [ -E ] [ -U username ] [ -h server[:port] ] [ -P destination[/instance] ] [ -a ] [ -l ] [ +interval ]
Options
Examples
lpq -l
Displays printer information in verbose format.
Related commands
lp — Print a file on the System V operating system.lpr — Submit print requests.lprm — Remove requests from the print queue.lpstat — List the status of the LP print services.