LPI Exam Questions

Which command will print line numbers before each line in a file?

Which command will print line numbers before each line in a file?

A.
ln

B.
nl

C.
cat -n

D.
numline

Explanation:
cat -n prints a line number in front of EVERY line of the file, where nl does not number the empty lines.
In my opinion both B and C would be correct