nerdexam
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)
  • A
    79% (26)
  • B
    12% (4)
  • C
    6% (2)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 117-102 Practice