|
How to clear print queue in Linux?
This often occur when you may accidentally send a real big job to the printer, and then you realize that, you forgot to change the paper size from A4 to letter, or any other scenario where you may need to change something in a document already sent to the printer queue, so now you need to cancel it. So first lets see the spooler (Printer queue) --- lpq --- This will list all your jobs sent to the printer. --- BJC-250 is ready
--- Now if you want to stop jobs, you can use the cancel command. You can cancel only jobs owned by you, or by an specified user (provided that you have the rights to do it). --- cancel -u user --- This will cancel all jobs belonging to a certain user,
but, if you want to cancel all jobs, no matter who owns them
--- cancel -a --- lpq Command lpq - show printer queue status Synopsis lpq [ -E ] [ -P dest ] [ -a ] [ -l ] [ +interval ] Description lpq shows the current print queue status on the named printer. Jobs queued on the default destination will be shown if no printer or class is specified on the command-line. The interval option allows you to continuously report the jobs in the queue until the queue is empty; the list of jobs is show one every interval seconds. The -E option forces encryption when connecting to the server. The -a option reports jobs on all printers. The -l option requests a more verbose (long) reporting format. |
|
See Also Have a Linux ProblemLinux Forum - Do you have a Linux Question? Linux Books
Linux Home: Linux System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|