LPI
101-500 · Question #7
Which of the following statements is correct regarding the command foo 1> bar?
The correct answer is B. The stdout from the command foo overwrites the file bar. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Shells and Shell Scripting
Question
Which of the following statements is correct regarding the command foo 1> bar?
Options
- AThe stdout from the command foo is appended to the file bar.
- BThe stdout from the command foo overwrites the file bar.
- CThe command foo receives its stdin from the file bar.
- DThe command foo receives its stdin from the stdout of the command bar.
- EThe stderr from the command foo is saved to the file bar.
How the community answered
(17 responses)- B88% (15)
- C6% (1)
- D6% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#shell redirection#stdout#output operators#file overwrite
Community Discussion
No community discussion yet for this question.