Tuesday 11 January 2011

Delete print jobs from cups service

lprm - Remove a Print Job
Command: lprm -P


Examples:
To remove the job 123 for printer laser, enter
lprm -Plaser 123

To remove all print jobs for the printer laser
lprm -Plaser -

lpq - View Print Jobs
Command: lpq-P 

Example: To view current print jobs for all printers for the current user, enter...
lpq

Example: To view current print jobs for the printer laser only, enter... 
lpq -Plaser