cat — CATenate files and display
Cat will do following functions on the files: Displaying them, Combining copies of them and Creating new ones.
Jargon File: Catenate is an obscure word meaning “to connect in a series”, which is what the “cat” command does to one or more files.
$ cat File -- Dump the file on screen. $ cat File1 File2 File3 -- Concat File1,File2 & File3 and display. $ cat > File -- Concat the STDIN to STDOUT and FILE. Press Enter and Ctrl+D to exit. $ cat - File - Concat STDIN and File to STDOUT. $ cat -n File -- Show the File with number for each line. $ cat -b File -- Show the File with number for non-blank lines. $ cat -s File -- Squeeze multiple blank lines to single. $ cat -A File -- Show the Non-Printable Chars also. STDIN - Standard Input - Keyboard STDOUT - Standard Output - Screen
Read: man cat / info cat