cat file2 - it will take the content to the file 2 and cat>file2 will display an error
Both used to display the contents
cat file2 - it displays the content of the file 2 and cat>file2 - if the file is empty it creates the content into the file2 and if the file has contents it overwrittens