Prev | Current Page 1282 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


Removing Print Jobs with lprm
Users can remove their own print jobs from the queue with the lprm command. Used alone on the
command line, lprm removes all the user??™s print jobs from the default printer. To remove jobs from
a specific printer, use the -P option, as follows:
$ lprm -P lp0
To remove all print jobs for the current user, type the following:
$ lprm -
The root user can remove all the print jobs for a specific user by indicating that user on the lprm
command line. For example, to remove all print jobs for the user named mike, the root user types
the following:
$ lprm mike
706
Running Servers Part V
To remove an individual print job from the queue, indicate its job number on the lprm command
line. To find the job number, type the lpq command. Here??™s what the output of that command may
look like:
$ lpq
printer is ready and printing
Rank Owner Job Files Total Size Time
active root 133 /home/jake/pr1 467
2 root 197 /home/jake/mydoc 23948
The output shows two printable jobs waiting in the queue. (The printer is ready and printing the
job listed as active.) Under the Job column, you can see the job number associated with each
document. To remove the first print job, type the following:
# lprm 133
Configuring Print Servers
You??™ve configured a printer so that you and the other users on your computer can print to it.


Pages:
1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294