- Printing Files -

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.

lpr

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

lpq

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.

cancel

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.