cat
Text ProcessingConcatenate and display file contents
Options & Flags
Available options for this command
-nNumber all output lines
-bNumber non-empty output lines
-AShow all characters including non-printable
Examples
Common usage examples
Display contents of file.txt
cat file.txtDisplay contents of multiple files
cat file1.txt file2.txtDisplay file with line numbers
cat -n script.shNotes
- For large files, consider using 'less' or 'more' instead
- Can be used to create files: cat > newfile.txt