Multiple choice technology

Create a new file "new.txt" that is a concatenation of "file1.txt" and "file2.txt"?

  1. cat file1.txt file2.txt > new.txt

  2. make new.txt=file1.txt+file2.txt

  3. tail file1.txt | head file2.txt > new.txt

  4. cat file1.txt file2.txt

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

The command 'cat file1.txt file2.txt > new.txt' concatenates both files and redirects output to create new.txt. The > operator creates a new file (or overwrites existing). Option B uses invalid syntax, C misuses tail/head, and D only displays to screen without creating file.