Multiple choice technology operating systems

How is the command ?$cat file2 ? different from ?$cat >file2

  1. cat file2 - it will take the content to the file 2 and cat>file2 will display an error

  2. Both used to display the contents

  3. 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

  4. Both used to append the contents

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The cat file2 command reads and displays the contents of file2 to the terminal. In contrast, cat > file2 redirects standard input to overwrite or create file2. The other options incorrectly claim they perform identical operations or cause errors.