Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
41
rated 0 times [  41] [ 0]  / answers: 1 / hits: 153882  / 2 Years ago, sun, april 24, 2022, 5:01:18

How can I print the command line output directly to the printer.



I am using ubuntu server 12.04 and I have to copy files into a shared directory and then download them from a desktop ubuntu distribution to print them.



Any help is appreciated


More From » printing

 Answers
6

Mainly there are two default commands:



lpr and lp



man lpr gives the output:




lpr submits files for printing. Files named on the command line
are
sent to the named printer (or the default destination if no destination
is specified). If no files are listed on the command-line, lpr reads
the print file from the standard input.




man lp gives the output:




lp submits files for printing or alters a pending job. Use a
filename
of "-" to force printing from the standard input.




so easily use the command:



lp /path-to-file-to-print


Or



lpr /path-to-file-to-print

[#26573] Monday, April 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
overine

Total Points: 20
Total Questions: 109
Total Answers: 98

Location: Aruba
Member since Fri, Jun 24, 2022
2 Years ago
overine questions
Tue, Jul 12, 22, 00:27, 2 Years ago
Wed, Jan 11, 23, 02:15, 1 Year ago
Tue, Aug 10, 21, 01:39, 3 Years ago
;