Norman Woodcock Asked: 2013-09-27 05:27:51 +0800 CST2013-09-27 05:27:51 +0800 CST 2013-09-27 05:27:51 +0800 CST How do I clear a Print-queue in Ubuntu? 772 I am an absolute beginner with Ubuntu and I appear to have a long queue of documents in my H.P. 840C printer. printing 5 Answers Voted Rinzwind 2013-09-27T05:36:22+08:002013-09-27T05:36:22+08:00 The question was how to kill all jobs. The simple way to kill all jobs: lprm - The complicated linux old-school way is below: Command line: lpstat -o to view outstanding print jobs. cancel -a {printer} to cancel ALL jobs or ... cancel {printerjobid} to cancel 1 job. man page cancel zwets 2013-09-27T05:35:05+08:002013-09-27T05:35:05+08:00 Either Use the printer dialog: type "Printers" in the dash and navigate to the printer Use the CUPS web interface: point your browser at http://localhost:631/jobs/ and proceed from there Use the command line interface: use lpq to see jobs, lprm to remove. Refer to man lprm for more information. PHP Learner 2015-09-13T08:11:02+08:002015-09-13T08:11:02+08:00 Use lpstat -W completed -o to view list of completed jobs. Use lpstat -o to view list of not-completed jobs. And to delete job list,just use this command: cancel -a -x This will cancel all pending jobs, as well as deleting them. some_other_guy 2014-05-31T03:18:15+08:002014-05-31T03:18:15+08:00 Well, answers given here didn't work for me so here's what I did - ps aux | grep printer kill {printer job} Zac Helmberger 2022-04-01T09:51:48+08:002022-04-01T09:51:48+08:00 I tried using lpstat and lprm but was unable to figure out basic things like the job number and stuff. Instead, I used the command: lpq This produced: zac@computer:~$ lpq lpq: Error - no default destination available. A quick Internet search and then I tried: zac@computer:~$ lpq -a Rank Owner Job File(s) Total Size 1st zac 85 TorahNT.odt 59392 bytes FINALLY I find the all important Job number: 85! NOW I run lprm: zac@computer:~$ lprm 85 zac@computer:~$ And to confirm I did this: zac@computer:~$ lpq -a no entries zac@computer:~$ Finally, the printer queue is empty.
The question was how to kill all jobs. The simple way to kill all jobs:
The complicated linux old-school way is below:
Command line:
to view outstanding print jobs.
to cancel ALL jobs or ...
to cancel 1 job.
man page cancel
Either
http://localhost:631/jobs/
and proceed from therelpq
to see jobs,lprm
to remove. Refer toman lprm
for more information.Use
to view list of completed jobs.
Use
to view list of not-completed jobs.
And to delete job list,just use this command:
This will cancel all pending jobs, as well as deleting them.
Well, answers given here didn't work for me so here's what I did -
I tried using
lpstat
andlprm
but was unable to figure out basic things like the job number and stuff. Instead, I used the command:This produced:
A quick Internet search and then I tried:
FINALLY I find the all important Job number: 85!
NOW I run
lprm
:And to confirm I did this:
Finally, the printer queue is empty.