lpstat

displays status information about the current print service

TLDR

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

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
sudo dnf install cups-client
sudo apk add cups-client
sudo zypper install cups-client

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)