LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lpstat

displays status information about the current print service

TLDR

Show all printers
$ lpstat -p
copy
Show default printer
$ lpstat -d
copy
Show print jobs
$ lpstat
copy
Show jobs for specific printer
$ lpstat -P [printer]
copy
Show detailed printer info
$ lpstat -l -p [printer]
copy
Show all status info
$ lpstat -t
copy
Show accepting printers
$ lpstat -a
copy

SYNOPSIS

lpstat [options]

DESCRIPTION

lpstat displays status information about the current print service. It shows printers, print jobs, and system configuration for CUPS.The tool helps troubleshoot printing issues and monitor job queues.

PARAMETERS

-a [printers]

Show accepting status.
-d
Show default destination.
-o [dest]
Show jobs.
-p [printers]
Show printer status.
-r
Show scheduler running.
-s
Show summary.
-t
Show all status.
-u [users]
Show user jobs.
-l
Long (detailed) output.
-W which
Show completed/not-completed jobs.

INSTALL

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

CAVEATS

Information depends on CUPS configuration. Some details need appropriate access. Network printers may have delayed status.

HISTORY

lpstat follows the POSIX printing interface, with implementations in various Unix systems. The CUPS implementation by Apple and Michael Sweet became standard on macOS and Linux.

SEE ALSO

lp(1), lpr(1), lpq(1), cancel(1), cupsd(8)

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