hide random home http://www.fmi.uni-passau.de/archive/doc/unix/unixhelp/Unixhelp/tasks_lpr4.1.html (Einblicke ins Internet, 10/1995)

Examples of using the lpq command

Examples of using the lpq command

1. To display the print queue for your default printer:

   lpq
Rank Owner Job Files active joe 483 overheads.ps
   2nd	sarah	484	/tmp/RFC137
   3rd	tony	485	report

This displays the print queue for your default printer: the one defined by your PRINTER environment variable.

Each job in the queue has a job number. Details are also given about the job's position in the queue and the user's name.

2. To display the print queue for a specific printer:

   lpq -Ppsmath

This displays the print queue for the printer psmath.