Stop printer jobs from terminal
To cancel a print job :
List all jobs:
lpq Rank Owner/ID Class Job Files Size Time active bob A 11 zarma.txt 8000 10:12:10
Delete the job by it's id, which is 11 here:
lprm 11
You must be root
to delete jobs that you don't have initiated.
If the printer is not the default printer, add the -P
option, e.g.
lpq -P crust
lprm -P crust …
Supposing that :
If lpq
didn't show any printing jobs, it is because they are no more in the queue.
If as shown by the screen copy the printer status is unknown, perhaps the line remains because the tool is missing the printing status.
Perhaps the job has already been submitted and the job will be cancelled, when the communication with the printer is established.
Is it a link problem or is the printer down?