lpstat(1)
Name
lpstat − printer status information
Syntax
lpstat [ options ]
Description
The lpstat utility prints the status of the system printers.
Without any options, lpstat prints the status of print requests made to the default printer.
This command exists for X/OPEN compatibility.
Options
Some of the options can be followed by a list of arguments. The arguments must be specified as follows:
lpstat −uuser1,user2,user3
List items can be separated by spaces, but the list must be enclosed in quotes. If you do not include any arguments, all the information relevant to the option is printed.
The valid options for lpstat are:
−a [ printer1, printer2, ... ]
Print whether or not printers are accepting print requests.
−dPrint the name of the default system printer.
−o [ printer1, printer2, ... ]
Print the status of print requests.
−p [ printer1, printer2, ... ]
Print the status of printers.
−rPrint the status of the line printer daemon, lpd.
−sPrint a status summary, including the status of the line printer daemon lpd, and the default system printer.
−tPrint all status information.
−u [ user1, user2, ... ]
Print the status of users’ print requests.