Beginner Linux & Shell Scripting
Q39 / 100

What does the "head" command do by default?

Correct! Well done.

Incorrect.

The correct answer is A) Displays the first 10 lines of a file

A

Correct Answer

Displays the first 10 lines of a file

Explanation

"head" prints the beginning of a file, showing 10 lines by default; the number of lines can be changed with "-n", e.g. "head -n 5 file.txt".

Progress
39/100