How to display line numbers in Linux cat command?

You can use cat -n or –number option to display line numbers while printing a file using Linux cat command.

Leave a Reply