Multiple choice technology operating systems

How to append the content of one file to other using cat.

  1. cat file1 > file2

  2. cat file1, file2

  3. cat file1>>file2

  4. cat file1 < file 2

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

cat file1>>file2 uses append redirection (>>) to add file1's content to the end of file2 without overwriting existing content. Option A overwrites, option B syntax is incorrect, and option D uses input redirection incorrectly.