How to view file content in linux


 description

View the content of the cmdhelp.txt file in Linux, and display all content line numbers

 command

cat -n cmdhelp.txt

 parameter

cat : Concatenate FILE(s) to standard output.
-n, --number : number all output lines

 result

     1  a
     2  b
     3  c
     4  d
     5  

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.