14.6. Flushing a print job

You discovered that the first job you printed was the incorrect one. You printed the correct one but now you want to delete the first job. This is how it would be done:

1.
Check the status of the print queue.
# lpstat -vlpforu
Queue  Dev  Status   Job Files            User       PP %  Blks Cp Rnk
------ ---- -------- --- ---------------- -------- ---- -- ---- -- ---
lpforu lp0  RUNNING    3 /etc/passwd      root        1 100   1  1   1
2.
Print the /etc/hosts file to the default printer.
# lpr -dlpforu /etc/hosts
3.
Check the status of the print queue.
 # lpstat -vlpforu Queue Dev Status Job Files User PP % Blks Cp Rnk ------ ---- -------- --- ---------------- -------- ---- -- ---- -- --- lpforu lp0 RUNNING 3 /etc/passwd root 1 100 1 1 1 QUEUED 4 /etc/hosts ...

Get IBM eServer Certification Study Guide - pSeries AIX System Administration now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.