Removing Jobs from the Queue
The lprm command can be used to remove print jobs that are currently in the queue and sometimes to remove print jobs that are currently printing. If lprm is run without any command line arguments, it will remove whatever job is currently printing on the default printer if that job belongs to the user that is running lprm. If the currently running job does not belong to the user running lprm, it will have no effect. If the root user runs lprm with no options, it will remove the currently printing job from the default printer, no matter who the job belongs to.
Running lprm with a job number as an argument will remove the job with that ID number from the queue of the default printer, assuming that you own the job and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access