cancel
cancel指令用来取消已经存在的打印任务。
此命令的适用范围:RedHat、RHEL、Ubuntu、CentOS、Fedora、openSUSE、SUSE。
1、语法
cancel [ -E ] [ -U username ] [ -a ] [ -h hostname[:port] ] [ -u username ] [id ] [ destination ] [ destination-id ]
2、命令列表
|
命令
|
说明
|
|
-E
|
使用加密模式
|
|
-a
|
取消所有打印任务
|
|
-h
|
指定远程服务器
|
|
-U
|
设置别名
|
|
-u
|
取消被指定用户拥有的打印任务
|
3、实例
取消打印任务
|
[root@localhost /]# lpq //查看打印队列
printer01 已准备就绪,正在打印
顺序 所有者 作业 文件 总大小
1st root 4 4.c 1024 字节
active root 2 5.c 1024 字节
[root@localhost /]# cancel 4 //取消4号任务
You have new mail in /var/spool/mail/root
[root@localhost /]# lpq //查看打印队列,4号任务已经取消
printer01 已准备就绪,正在打印
顺序 所有者 作业 文件 总大小
active root 2 5.c 1024 字节
[root@localhost /]#
|
相关文章:
-
2021-10-20
-
2022-02-16
-
2022-12-23
-
2021-11-19
-
2022-12-23
-
2021-09-28
-
2021-10-08
-
2021-11-03