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 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.

-E

Forces an encrypted connection if supported by the print server.

-h host

Communicate with print server host, localhost by default.

-l

Shows a long listing of classes, jobs, or printers when used before -c, -o, or -p, respectively.

-o [ list ]

Show job queues for printers in list, or all printers if list isn’t given.

-p [ list ]

Show the status of printers named in list, or all printers if list isn’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.

-u user

Show request status for user, or all users if user isn’t given.

-v [ list ]

Show device associated with each printer named in list, or all printers if list isn’t given.

Get Mac OS X in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.