LPI
117-102 · Question #203
What would the following command do? $ cat hosts | lpr -#2
The correct answer is A. Print the file hosts on the default printer two times. See the full explanation below for the reasoning.
Question
What would the following command do? $ cat hosts | lpr -#2
Options
- APrint the file hosts on the default printer two times.
- BCategorize hosts and print the categorization as job #2.
- COutput the file hosts to the line printer and assign it to the second printer queue.
- DPrint the hosts file to STDOUT and assign the current print job to printer tray number 2.
How the community answered
(33 responses)- A79% (26)
- B12% (4)
- C6% (2)
- D3% (1)
Community Discussion
No community discussion yet for this question.