What would the following command do?

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

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

A.
Print the file hosts on the default printer two times.

B.
Categorize hosts and print the categorization as job #2.

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

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

Explanation:
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.
Example:
lpr -Pprintername -#numberofcopies filename
-# or -K specify the number of copies.



Leave a Reply 0

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