cat number of lines linux code example Example: how to show lines on cat command bash$ cat -n file.txt