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


Correct Option: C

Find more quizzes: