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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.