In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the usage of Linux basic command lpstat". In daily operation, I believe many people have doubts about the usage of Linux basic command lpstat. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "the usage of Linux basic command lpstat"! Next, please follow the editor to study!
Lpstat
The lpstat instruction is used to display the current task and the status of the printer. If there are no parameters, the print queue is displayed.
The scope of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora, openSUSE, SUSE.
1. Grammar
Lpstat [options]
2. Command list
Command
Description
-E
Use encryption mode
-H
Displays the name and port of the remote printer
-R
Show the order of tasks
-U
Set alias
-W
Set which task to display
-a
Displays the printer queue that allows printing
-c
Show printer class
-d
Show default printer
-h server [: port]
Specify alternate server
-l
Displays a long list of printers, classes, or jobs.
-o
Displays the queue for the specified printer
-p
Displays the specified printer, regardless of whether the printer is active or not
-r
Displays whether CUPS is running
S
Show status summation
-t
Displays all status. Equivalent to "- r", "- d", "- c", "- v", "- a", "- p", "- o"
-u [user (s)]
Displays a list of print jobs queued by the specified user. If no user is specified, the jobs queued by the current user are listed.
-v [printer (s)]
Displays the printer and its connected devices. If no printer is specified, all printers are listed.
3. Examples
Check to see if CUPS is running
[root@localhost /] # lpstat-r
The scheduler is running
You have new mail in / var/spool/mail/root
[root@localhost /] #
At this point, the study of "the usage of the Linux basic command lpstat" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.