Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

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.

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.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata