Text filters · Question 1 of 12

Which command prints the first ten lines of a file when given no further options?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • C head

Explanation

tail, by contrast, prints the last ten lines. For both, -n changes the number, for example head -n 3.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications