In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the usage of the Linux basic command lp". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the usage of the Linux basic command lp".
Lp
The lp instruction is used to print files, or you can modify existing print tasks. Use this instruction to specify the printed page number, copy, and so on.
The scope of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora, openSUSE, SUSE.
1. Grammar
Lp [- E] [- U username] [- c] [- d destination [/ instance]] [- h hostname [: port]] [- m] [- n num-copies]
[- o option [= value]] [- Q priority] [- s] [- t title] [- H handling] [- P page-list] [-] [file (s)]
Lp [- E] [- U username] [- c] [- h hostname [: port]] [- I job-id] [- n num-copies] [- o option [= value]]
[- Q priority] [- t title] [- H handling] [- P page-list]
2. Command list
Command
Description
--
Mark the end of the option; use it to print files that start with (-).
-E
Use encryption mode
-U username
Set user name
-c
Provide backward compatibility
-d destination
Target printer
-h hostname [: port]
Remote printer
-I job-id
Specify the print task to modify
-n
Set the number of times to print copies 1: 100
-m
Send an email after the print is completed
-o "name=value [name=value...]"
Set printing options
-Q priority
Set print level 1x100100 maximum, default 50
S
Silent mode
-t "name"
Set the print task name
-u username
Submit the assignment under the specified name.
-H hh:mm
Sets the start time of printing. It can be in time format, or it can be hold, waiting for printing; immediate, printing now; restart, restarting the print task; resume, mounting the print task.
3. Examples
Print the specified file
[root@localhost /] # lpq / / View the current print queue
Printer01 is ready and printing
Total size of sequential owner job file
Active root 2 5.c 1024 bytes
1st root 3 P1 1024 byt
[root@localhost /] # lp-H 10:00-Q 100 / weijie/4.c / / print the file, specifying the highest level and time
The request id is printer01-4 (1 file)
You have new mail in / var/spool/mail/root
[root@localhost /] # lpq / / looking at the print queue, you can see that the task just now is the first one to print
Printer01 is ready and printing
Total size of sequential owner job file
1st root 4 4.c 1024 bytes
Active root 2 5.c 1024 bytes
2nd root 3 P1 1024 byt
[root@localhost /] #
Thank you for your reading, the above is the content of "the usage of the Linux basic command lp". After the study of this article, I believe you have a deeper understanding of the usage of the Linux basic command lp, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.