What is the difference between > and >> (especially as it relates to use with the cat program)?

Suppose that I have a file called temp.txt. Using the cat program, I would like to add the contents of this file to the end of myfile.txt — creating myfile.txt if it does not exist and appending to it if it does. I am considering these possibilities: cat temp.txt > myfile.txt or cat temp.txt >> … Read more