nerdexam
LPI

117-101 · Question #122

Which of the following commands will print the first few lines of a text file to the shell?

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

Question

Which of the following commands will print the first few lines of a text file to the shell?

Options

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

How the community answered

(43 responses)
  • A
    16% (7)
  • B
    2% (1)
  • C
    74% (32)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full 117-101 Practice