How to append one file to another in Linux from the shell?

Question

I have two files: file1 and file2. How do I append the contents of file2 to file1 so that contents of file1 persist the process?

Answer

Use bash builtin redirection (tldp):

cat file2 >> file1

How to add users to Docker container?

How to find which version of TensorFlow is installed in my system?