Add text to another file / concatenate Ubuntu

If you'd like to add text from one file to another (concatenate two text files) the run the following command:

cat file1 | cat >> file2

This will output the contents of file1 and pipe the output to file2.