Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
Check the status of printers and print requests.
Only the most commonly used options are shown here. For other valid options, see the lpstat(1) man page.
$ lpstat -o [list] | -u [user-list]
To specify multiple printer names, class names, and IDs for list, use a space or a comma to separate values. If you use spaces, enclose the list of values in quotation marks.
If you don't specify list, the status of print requests sent to all printers is displayed.
Shows the status of print requests for a specific user. user-list can be one or more user names.
To specify multiple users with this command, use a space or a comma to separate user names. If you use spaces, enclose the list of names in quotation marks.
If you don't specify user-list, the status of print requests for all users is displayed.
From left to right, the line shows the following information:
Output size in bytes
Date and time of the request,
Information about the request, such as “being filtered.”
The following example shows that user fred has one print request queued on the printer luna.
$ lpstat luna-1 fred 1261 Jul 12 17:34
The following example shows that the user paul currently has no print requests in queue.
$ lpstat -u paul
The following example shows that two print requests are queued on the printer moon.
$ lpstat -o moon moon-78 root 1024 Jul 14 09:07 moon-79 root 1024 Jul 14 09:08