How to remove a printing job in linux
Use the "lpq" command prior to using the "lprm" command to make it easier to see which print jobs are currently in the queue. The "lpq" command lists all of the files in the queue, as well as the user, the job number, the size and the root directories from which the print jobs originate.
- Step 2
Type the name of a specific user to remove all of that user's print jobs from the queue. For example, to remove all of the print jobs in the queue posted by the user "exec_a" you would type "lprm exec_a."
- Step 3
Use the "-p" command line parameter to remove print jobs from the queue of a particular printer. In this manner you also need to include the network name for the printer (by default, printers are labeled lp0, lp1, lp2 and so on). In order to remove all of the print jobs from printer lp2, for example, you would type "lprm -p lp2."
- Step 4
Take off all of the print jobs for the current user by simply using a hyphen after the "lprm" command, like this: "lprm -."
- Step 5
Remove specific print jobs that are in the queue by their job number. Each job is assigned a number, which you can display using the "lpq" command. Once you know the number all you need to type is "lprm [job#]."
Labels: LINUX
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home