Linux in a Nutshell, Third Edition
by Ellen Siever, Stephen Spainhour, Jessica P. Hekman, Stephen Figgins
Name
lpstat
Synopsis
lpstat [options]
Description
Show the status of the print queue. With options that take a list argument, omitting the list produces all information for that option. list can be separated by commas or, if enclosed in double quotes, by spaces.
Options
- -a [list]
Show whether the list of printer or class names is accepting requests.
- -c [list]
Show information about printer classes named in list.
- -d
Show the default printer destination.
- -f [list]
Verify that the list of forms is known to lp.
- -l
Use after -f to describe available forms, after -p to show printer configurations, or after -s to describe printers appropriate for the specified character set or print wheel.
- -o [list]
Show the status of output requests. list contains printer names, class names, or request IDs.
- -p [list]
Show the status of printers named in list.
- -r
Show whether the print scheduler is on or off.
- -R
Show the job’s position in the print queue.
- -s
Summarize the print status (shows almost everything).
- -t
Show all status information (reports everything).
- -u [list]
Show request status for users on list. list can be all to show information on all users.
- -v [list]
Show device associated with each printer named in list.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access