Text filters · Question 3 of 12

Which command prints a file with line numbers in front of each line?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • A nl

Explanation

By default nl numbers only non-empty lines. cat -n, by contrast, numbers all lines.

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