LinuxCommandLibrary

lpstat

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.

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)

Copied to clipboard