In this section, we will discuss what you can do as a user when
something goes wrong. We won't discuss any problems that have to do
with the daemon-part of the printing service, as that is a task for
system administrators.
8.3.1. Wrong file
If you print the wrong file, the job may be canceled using the
command lprm jobID, where jobID is in the form
printername-printjobnumber (get it from information
displayed by lpq or lpstat). This will work when other jobs are waiting
to be printed in this printer's queue. However, you have to be
really quick if you are the only one using this printer, since jobs
are usually spooled and send to the printer in only seconds. Once
they arrive on the printer, it is too late to remove jobs using
Linux tools.
What you can try in those cases, or in cases where the wrong
print driver is configured and only rubbish comes out of the
printer, is power off the printer. However, that might not be the
best course of action, as you might cause paper jams and other
irregularities.