cat
Concatenate files and print on the standard output. Often used just to display the content of a short file.
Synopsis
cat [options] [file]
Core Options
-nNumber all output lines.
-bNumber nonempty output lines.
-EDisplay $ at end of each line.
Usage Examples
Display File Content
Print the contents of a file to the terminal.
cat README.mdConcatenate Files
Combine two files into a new one.
cat part1.txt part2.txt > combined.txtShow Line Numbers
Display contents with line numbering.
cat -n code.pyCreate a File (Quickly)
Type content into a file. Press Ctrl+D to save and exit.
cat > newfile.txtBuilt for builders.