nerdexam
LPI

117-010 · Question #79

Which command will display the last line of the file foo.txt?

The correct answer is D. tail -n 1 foo.txt. See the full explanation below for the reasoning.

Question

Which command will display the last line of the file foo.txt?

Options

  • Ahead -n 1 foo.txt
  • Btail foo.txt
  • Clast -n 1 foo.txt
  • Dtail -n 1 foo.txt

How the community answered

(52 responses)
  • A
    10% (5)
  • B
    4% (2)
  • C
    2% (1)
  • D
    85% (44)

Community Discussion

No community discussion yet for this question.

Full 117-010 Practice