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

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.
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



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Khalil

Khalil

I think the correct answer is B.