Name

lpq

Synopsis

lpq [options] [+interval]

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). We document the CUPS printing system here; other versions will vary slightly.

Options

-a

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

-E

Use encryption when connecting to a print server.

-h server[:port]

Specify an alternate server and optional port.

-l

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

-P printer

Specify which printer to query. Without this option, lpq uses the default printer, normally set through lpadmin.

-U username

Specify an alternate username.

+interval

Check the queue every interval seconds until it is empty. For example, +10 reloads the queue every ten seconds.

Get Linux in a Nutshell, 6th 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.