nerdexam
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)
  • A
    3% (1)
  • B
    9% (3)
  • C
    85% (28)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 117-010 Practice