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

On Solaris, this is the original BSD interface, in /usr/ucb/lpq; see lpq(1B) for more information. This entry documents the CUPS version, which is used on GNU/Linux and Mac OS X. See also lpr.

Options

-a

Report on all printers.

-E

Encrypt the connection to the server.

-l

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

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

+ interval

Print the status every interval seconds until the queue is empty.

Get Unix in a Nutshell, 4th 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.