nerdexam
LPI

101-500 · Question #139

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. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

GNU and Unix Commands

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

(19 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    89% (17)

Explanation

You've hit your Sonnet limit · resets Jun 8, 9am (UTC)

Topics

#head command#file viewing#command flags#text utilities

Community Discussion

No community discussion yet for this question.

Full 101-500 Practice