Oracle
1Z0-876 · Question #29
Jane has two text files, file1 and file2. She wants to append the contents of file2 to the existing contents of file1. Choose the command that will achieve this goal.
The correct answer is G. cat file2 >> file1. See the full explanation below for the reasoning.
Question
Jane has two text files, file1 and file2. She wants to append the contents of file2 to the existing contents of file1. Choose the command that will achieve this goal.
Options
- Acat file1 >> file2
- Bcat file1 file2 > file1
- Cecho file2 >> file1
- Dfile1 << file2
- E
file2 >> file1
- Fcat file2 | file1
- Gcat file2 >> file1
How the community answered
(38 responses)- A3% (1)
- B5% (2)
- D3% (1)
- E8% (3)
- G82% (31)
Community Discussion
No community discussion yet for this question.