Note Each question may contain one or more correct answers 1
Note: Each question may contain one or more correct answers.
1) cat < file1 >> file2
(a) file1 content will be appended to file2
(b) file1 and file2 will have same content
(c) syntax error
(d) None of above
2) Which of these is the correct method for appending “new” into /test/part1 file?
(a) echo new > /test/part1
(b) echo new >> /test/part1
(c) echo new | /test/part1
(d) /test/part < echo newNote: Each question may contain one or more correct answers.
Solution
1) The correct answer is option (c) syntax error
2) The correct answer is option (b) echo new >> /test/part1
