nerdexam
LPI

101-400 · Question #33

Which of the following commands will print the last 10 lines of a text file to the standard output?

The correct answer is D. tail -n 10 filename. See the full explanation below for the reasoning.

Question

Which of the following commands will print the last 10 lines of a text file to the standard output?

Options

  • Acat -n 10 filename
  • Bdump -n 10 filename
  • Chead -n 10 filename
  • Dtail -n 10 filename

How the community answered

(51 responses)
  • A
    14% (7)
  • B
    4% (2)
  • C
    6% (3)
  • D
    76% (39)

Community Discussion

No community discussion yet for this question.

Full 101-400 Practice