Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the linux lpr command to put the file in the print queue and wait for it to print

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the use of linux's lpr command to put files into the print queue to wait for printing, the article introduces in great detail, has a certain reference value, interested friends must read it!

The lpr command is used to send files to the specified printer for printing, or the default printer is used if no target printer is specified.

Syntax format: lpr [parameters]

Common parameters:

-E enforces encryption when connecting to the print server-H specifies optional print server-C specifies the name of the print task-P specifies the target printer that accepts the print task-U specifies the optional user name-# specifies the number of copies printed-h closes banner printing-m printing is completed and sends E-mail-r to delete the file after printing is complete

Reference example

Send man1 and man2 to the printer lp for printing:

[root@linuxcool] # lpr-P lp man1 man2

Print the report file on the printer named mailroom:

[root@linuxcool ~] # lpr-P mailroom report

Print 3 files on the printer named laser1:

[root@linuxcool ~] # lpr-P laser1 file_1.txt file_2.txt file_3.txt above are all the contents that use the lpr command of linux to put the file into the print queue and wait for printing. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report