Examples of using the lpq command

Examples of using the lpq command

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.


To display the print queue for a specific printer:

   lpq -Ppsmath

This displays the print queue for the printer psmath.


[Home] [Search] [Index] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:30 am and is maintained by webmaster@math.rutgers.edu.
For questions regarding courses and/or special permission, please contact mclausen@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2012 Rutgers, The State University of New Jersey. All rights reserved.