O'Reilly logo

Linux in a Nutshell, Fourth Edition by Aaron Weber, Stephen Figgins, Ellen Siever

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

lpq

Synopsis

                  lpq [options] [jobid]

Check the print spool queue for status of print jobs. For each job, display username, rank in the queue, filenames, job number, and total file size (in bytes). If user is specified, display information only for that user. jobid can be one or more job numbers, usernames, lpd key characters, or key character and glob patterns of the form X = pattern.

Options

-a

Report on all printers listed in the server’s printcap database.

-l

Verbose mode. Print information about each file comprising a job. Use -l multiple times to increase the information provided.

-s

Print one-line status summary for each queue and subqueue.

-A

Use authentication.

-L

Maximum verbosity. Print all available information about each file comprising a job in a long display format.

-P printer

Specify which printer to query. Without this option, lpq uses the printer set in the PRINTER or other printer-related environment variables or the default system printer.

-V

Print version, then exit.

-t n

Display spool queues every n seconds.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required