Which command will print line numbers before each line in a file?
A.
In
B.
nl
C.
cat-n
D.
numline
Explanation:
Syntax: cat [option] filename.
Options: -n, -b Display the line number before each line
-A Show all characters including control characters.
-s Squeeze multiple adjacent blank lines into one line
I think the correct answer is B.