cancel
cancel指令用来取消已经存在的打印任务。
此命令的适用范围:RedHat、RHEL、Ubuntu、CentOS、Fedora、openSUSE、SUSE。
1、语法
cancel[ -E ][ -U username ][ -a ][ -h hostname[:port] ][ -u username ][id ][ destination ][ destination-id ]
-a -- 取消所有打印任务
2、实例
root@localhost /]#lpq//查看打印队列
printer01已准备就绪,正在打印
顺序所有者作业文件总大小
1stroot44.c1024字节
activeroot25.c1024字节
[root@localhost /]#cancel 4//取消4号任务
[root@localhost /]#lpq//查看打印队列,4号任务已经取消
printer01已准备就绪,正在打印
顺序所有者作业文件总大小
activeroot25.c1024字节
[root@localhost /]#