cat
Linux Commands - Managing Files and Text

cat

cat will read a file and print it to standard output, usually the screen. cat is short for catenate.


Example:


cat mytext

This will show the contents of mytext.


cat mytext yourtext

This will show the content of mytext and then follow it with yourtext.


cat mytext yourtext > newtext

This will combine the two texts into a new text file in order.



Options

-A prints nonprinting and control characters

-e show a $ at the end of each line