LinuxCommandLibrary

lpq

TLDR

Show print queue

$ lpq
copy
Show specific printer queue
$ lpq -P [printer]
copy
Show all printers
$ lpq -a
copy
Show long listing
$ lpq -l
copy
Continuous updates
$ lpq +[5]
copy

SYNOPSIS

lpq [options] [user]

DESCRIPTION

lpq displays the print queue status. It shows pending jobs, their owners, and sizes.
The tool is the BSD-style print queue viewer. Use it to check job status before printing.
lpq shows print queue.

PARAMETERS

USER

Show jobs for specific user.
-P PRINTER
Specify printer.
-a
Show all printers.
-l
Long listing format.
+ INTERVAL
Repeat every interval seconds.
--help
Display help information.

CAVEATS

Requires CUPS. Output format varies. Legacy BSD interface.

HISTORY

lpq originated in BSD Unix for viewing print queues, now implemented by CUPS.

SEE ALSO

lp(1), lpr(1), lprm(1), lpstat(1)

Copied to clipboard