LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lpq

displays the print queue status

TLDR

Show print queue
$ lpq
copy
Show specific printer queue
$ lpq -P [printer]
copy
Show all printers
$ lpq -a
copy
Show long listing with detailed info
$ lpq -l
copy
Show queue for a specific user
$ lpq -P [printer] [username]
copy
Continuous updates every N seconds
$ lpq +[5]
copy

SYNOPSIS

lpq [options] [user]

DESCRIPTION

lpq displays the current print queue status, showing pending and active jobs along with their owners, job IDs, file names, and sizes. Without arguments, it shows the default printer's queue.The tool provides the BSD-style interface for viewing print queues, now typically implemented by CUPS. It is useful for checking job status, diagnosing stuck queues, and monitoring print activity.

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
Kai