[cat] Display line numbers

Created on November 30, 2026

Use -n, or --number, to number the output lines. Suppose dummy.txt contains these lines.

one
two
three
cat -n dummy.txt
     1  one
     2  two
     3  three
Shell command