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.
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.
Read now
Unlock full access