Prev | Current Page 1083 | Next

Christopher Negus

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

You can also add the job number (to see the status of a
particular print job) or a username (to see all queued jobs for a user).
Removing Print Jobs
If you have ever printed a large document by mistake, you understand the value of being able to
remove a print job from the queue. Likewise, if a printer is going to be down for a while and everyone
has already printed their jobs to another printer, it??™s sometimes nice to be able to clear all the
print jobs when the printer comes back online.
Remove print jobs using lprm. For example, to remove all jobs for the user named bill (assuming
you are either bill or the root user), type the following:
$ lprm bill
The root user can remove all print jobs from the queue. To do this, you add a dash (-) to the lprm
command line, as follows:
$ lprm -
You may need to enter the root password or be logged in as root to run this command. You can
also remove queued print jobs for a particular printer (-Pprinter) or for a particular job number
by just adding the job number to the lprm command line.
TIP
580
Running Applications Part IV
Checking Printer Status
Sometimes nothing comes out of a printer, and you have no idea why. lpc is a printer status command
that might give you a clue about what??™s going on with your printer.


Pages:
1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095