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. mkdir file1.txt file2.txt > new.txt

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

The cat command reads multiple files sequentially, and > redirects output to create a new file. 'cat file1.txt file2.txt > new.txt' concatenates file1 and file2 into new.txt. Option B has invalid make syntax. Option C would only show the end of file1 and start of file2. Option D uses mkdir (create directory) incorrectly.