The following commands are used to send print jobs to the printer, view the current print queue, and to delete jobs from the print queue.
Using the command lpr filename will send filename to the default printer.
A number of useful options include
lpr -n number filename - which will
print the specified number of copies.
lpr -w filename - which will send a
message to you when the print job is finished, This message is
sent via email if you are not logged on).
Typing lpq will display all jobs in the printer queue. Amongst the information it will display, is the ID number of every job in the queue.
The cancel command is used to remove jobs from the print queue. It is used in one of two ways.
cancel id where id is the id number of the job, obtained from lpq
or
cancel -u user where user is your login name.
Page Created 6th March 2005.
Last Modified 1st April 2005.
E-mail comments and corrections to rallen11@postoffice.csu.edu.au
© 2005 by Rebecca Allen