Multiple choice technology operating systems

What does the head command do?

  1. It shows the first 20 lines

  2. It shows the first 10 lines

  3. It shows the first 50 lines

  4. It shows the first 5 lines

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

By default, the Linux head command outputs the first 10 lines of a specified file. Distractors asserting 5, 20, or 50 lines are incorrect, as those numbers require explicit option flags (like -n) to override the default limit.