HomeToolsAbout a20k

Linux

cat

Read the contents of a file in console

cat filename.txt

Override the contents of another file

  • If the destination file does not exist then the command will create it, or overwrite an existing one by the same name
cat source.txt > destination.txt

Concatenate multiple files to one

cat source1.txt source2.txt > destination.txt
© VincentVanKoh