Log in on any system on the network.
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] |
Shows the status of print requests on a specific printer. list can be one or more printer names, printer class names, or print request IDs.
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.
When used to check the status of print requests, the lpstat command displays one line for each print request.
From left to right, the line shows the following information:
Request ID
User
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 |