cat -n /path/to/file | less
February 13, 2012 — openiduser28
cat -n will number all lines of a file.
cat -n
It will add some white spaces as padding.
grep -n ^ /path/to/file | less
November 9, 2011 — bashoneliners