lpstat

From RaySoft

lpstat displays status information about the current classes, jobs, and printers. When run with no arguments, lpstat will list active jobs queued by the current user.[1]

Documentation

Syntax

lpstat [PARAMETER ...]

Parameters

-a [PRINTERS]
Shows the accepting state of printer queues. If no PRINTERS are specified then all printers are listed.
-d
Shows the current default destination.
-p [PRINTERS]
Shows the PRINTERS and whether they are enabled for printing. If no PRINTERS are specified then all printers are listed.
-t
Shows all status information. This is equivalent to using the -r, -d, -c, -v, -a, -p, and -o options.
-v [PRINTERS]
Shows the PRINTERS and what device they are attached to. If no PRINTERS are specified then all printers are listed.

Examples

Shows the printers and whether they are enabled for printing
lpstat -p

References

  1. man 1 'lpstat'