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.

Get Linux in a Nutshell, Fourth Edition 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.