How to append the content of one file to other using cat.
-
cat file1 > file2
-
cat file1, file2
-
cat file1>>file2
-
cat file1 < file 2
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.