In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Linux how to use the lprm command to delete the print task, I believe many inexperienced people are helpless about this, this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
lprm
The lprm command deletes the job on the current print queue, or if not specified, deletes the current print job. You can specify one or more job ID numbers to cancel these jobs, or cancel all jobs using the option "-."
Scope of this command: Red Hat, RHEL, Ubuntu, CentOS, Fedora, openSUSE, SUSE.
1. Grammar
lprm [ -E ] [ -U username ] [ -h server[:port] ] [ -P destination[/instance]] [ - ] [ job ID(s) ]
2. Command list
command
description
-E
Use encryption mode
-P
specified printer
-h
Specify remote server
-U
set the alias
3. Examples
Delete Print Task
[root@localhost /]# lpq //View current print queue
printer01 is ready to print
Order Owner Job File Total Size
1st root 4 4.c 1024 bytes
active root 2 5.c 1024 bytes
2nd root 3 P1 1024 bytes
[root@localhost /]# lprm 3 //Delete Task 3
You have new mail in /var/spool/mail/root
[root@localhost /]# lpq //View print queue, Task 3 has been deleted
printer01 is ready to print
Order Owner Job File Total Size
1st root 4 4.c 1024 bytes
active root 2 5.c 1024 bytes
[root@localhost /]#
After reading the above, do you know how to delete print tasks using the lprm command in Linux? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.