LinuxDevCenter.com
oreilly.comSafari Books Online.Conferences.

advertisement


Linux in a Nutshell

This directory of Linux commands is from Linux in a Nutshell, 5th Edition.

Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.

Buy it now, or read it online on Safari Bookshelf.



lpq

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.

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

+interval

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


Linux Resources
  • Linux Online
  • The Linux FAQ
  • linux.java.net
  • Linux Kernel Archives
  • Kernel Traffic
  • DistroWatch.com


  • Sponsored by: