Multiple choice technology operating systems

_____________ is the command that writes the first 10 lines of a file to the screen.

  1. whereami

  2. head

  3. dir

  4. ls

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

The head command displays the first 10 lines of a file by default. whereami is not a standard Unix command, dir lists directories (non-standard on Unix), and ls lists directory contents. head is designed for viewing file beginnings.