Friday, 13 November 2009

Cancel print jobs

To list the jobs for a printer:
  • lpstat -W -o<printer name>
(The '-W' switch shows the job number in wide column format)

To cancel a job:
  • cancel <spool number> <printer name>

To cancel all prints for a printer:
  • qcan -X -P<printer name>

Helpful Unix links

Searchable index of man pages:
http://homepages.ed.ac.uk/unixhelp/index.html

IBM AIX command reference library:
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.aix.doc/doc/base/commandsreference.htm