shellspells beta

cat

cat [OPTION]... [FILE]...

Concatenate files together

A very useful command. Handy for quickly looking at a file. Also essential for joining files together. It even works on binary files.

Examples

Look at a file

cat /etc/hosts

Split a binary file into pieces and cat it back together again

$ split -b 2500k ccp151b4.tar.gz  ccp151b4_
$ cat ccp151b4_aa ccp151b4_ab ccp151b4_ac > ccp151b4.tar.gz