Multiple Choice
Which of the following commands redirects the output of cmd to the file foo.txt, in which an existing file is overwritten?
A) cmd || foo.txt
B) cmd | foo.txt
C) cmd && foo.txt
D) cmd >> foo.txt
E) cmd > foo.txt
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q204: Which of the following commands lists all
Q205: Which option to the yum command will
Q206: When the command echo $ outputs 1,
Q207: Which of the following commands should be
Q208: What is the first program that is
Q210: What is the purpose of the nsswitch.conf
Q211: When the command echo
Q212: Which of the following commands can be
Q213: Which function key is used to start
Q214: What of the following statements are true