Managing Your Print Jobs
Viewing the Print Queue
To view a list of the jobs in the print queue, use the lpq command. As with lpr, you can use -Pprintername to specify a printer other than your default.
For example, to view print queue information for the central print queue, you would type:
% lpq -Pandrew@printing.andrew.cmu.edu
The output might look something like this:

Remove a Specific Job from the Print Queue
Before removing a specific print job, you must use the lpq command to get the job number of the job to be removed (in the "Job" column). As usual, you can use -Pprintername to specify a printer other than the default.
Using the example image from the previous section, to remove job number 120, use the lprm command. Because deleting jobs is dangerous, lprm requires the printername with the -Pprintername option.
For example, to remove job number 120 from the central print queue, you would type:
% lprm -Pandrew@printing.andrew.cmu.edu 120
Remove All of your Jobs from One Print Queue
If you want to remove all of your jobs from one printer queue, use a dash instead of the job number. Again, you are required to specify the printer name using the -Pprintername command.
For example, to remove all of your print jobs from the Baker cluster printer, you would type:
% lprm -Pcl-baker@printing.andrew.cmu.edu -
Last Updated: 06/02/06