Prev Question
Next Question

What would the following command do?
cat hosts | lpr -#2

Print the file hosts on the default printer two times.

Categorize hosts and print the categorization as job #2.

Output the file hosts to the line printer and assign it to the second printer queue.

Print the hosts file to STDOUT and assign the current print job to printer tray number 2.

lpr command is used to send the printing job. If printer is not specified then it will send printing job
to default printer. To specify the printer name should use the -P option.
lpr -Pprintername -#numberofcopies filename
-# or -K specify the number of copies.

Prev Question
Next Question

Leave a Reply

Your email address will not be published. Required fields are marked *