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