Name
lpstat
Synopsis
lpstat [options]Prints the lp print queue status. 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
listof printer or class names is accepting requests.-
-c[list] Show information about printer classes named in
list.-
-d Show the default printer destination.
-
-E Force an encrypted connection if supported by the print server.
-
-hhost Communicate with print server
host,localhostby default.-
-l Show a long listing of classes, jobs, or printers when used before
-c,-o, or-p, respectively.-
-o[list] Show job queues for printers in
listor all printers iflistisn’t given.-
-p[list] Show the status of printers named in
listor all printers iflistisn’t given.-
-r Show whether the print scheduler is on or off.
-
-R Show the job’s position in the print queue when used before
-o.-
-s Summarize the print status (shows almost everything). Same as
-d-c-v.-
-t Show all status information (reports everything). Same as
-r-d-c-v-a-p.-
-uuser Show request status for
useror all users if user isn’t given.-
-v[list] Show device associated with each printer named in
listor all printers iflistisn’t given.-
-wcompleted|not-completed Only show completed or not completed print jobs, as appropriate. Option must appear before the
-ooption.
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