cat command examples

cat command examples

cat – concatenate files and print on the standard output

cat f - g

Output f’s contents, then standard input, then g’s contents.

cat Copy standard input to standard output.


#cat <file>

Prints the contents of “file” to STDOUT


#cat <file1> <file2>

Prints the contents of  files “file1”  and “file2” to STDOUT

Leave a Reply

Your email address will not be published. Required fields are marked *