Cat a file with line numbers With the -n flag you can view that file with line numbers cat -n some-file