LPI
117-010 · Question #23
Which of the following command sequences overwrites the file foobar.txt?
The correct answer is C. echo "QUIDQUIDAGIS" > foobar.txt. See the full explanation below for the reasoning.
Question
Which of the following command sequences overwrites the file foobar.txt?
Options
- Aecho "QUIDQUIDAGIS" >> foobar.txt
- Becho "QUIDQUIDAGIS" < foobar.txt
- Cecho "QUIDQUIDAGIS" > foobar.txt
- Decho "QUIDQUIDAGIS" | foobar.txt
How the community answered
(33 responses)- A3% (1)
- B9% (3)
- C85% (28)
- D3% (1)
Community Discussion
No community discussion yet for this question.