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 -U [username]
copy
Continuous updates every N seconds
$ lpq +[5]
copy

SYNOPSIS

lpq [-E] [-U username] [-h server[:port]] [-P destination[/instance]] [-a] [-l] [+interval]

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

-E

Force encryption when connecting to the server.
-U USERNAME
Use an alternate username.
-h SERVER[:PORT]
Use an alternate server.
-P DESTINATION[/INSTANCE]
Specify an alternate printer or class name.
-a
Show jobs on all printers.
-l
Long (verbose) listing format.
+ INTERVAL
Continuously report the queue every interval seconds until empty.
--help
Display help information.

INSTALL

sudo apt install lpr
copy
sudo dnf install cups-client
copy
sudo apk add cups-client
copy
sudo zypper install cups-client
copy

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), cancel(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid