Linux Terminal Glossary
›
File Viewing & Editing
cat -n file.txt
Category:
File Viewing & Editing
cat -n file.txt
Copy command
Print file contents with line numbers
Prints a file's contents with line numbers on the left side — helpful for referencing specific lines.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.