200-901 · Question #18
When using the Bash shell, how it the output of the devnet command saved to a tile named "output.txt"?
The correct answer is B. devnet > output.txt. In Bash, the '>' operator redirects standard output (stdout) to a file, overwriting it. So 'devnet > output.txt' sends the output of the devnet command into output.txt. Option A ('&') is used for background execution. Option C ('<') redirects a file as input to a command…
Question
When using the Bash shell, how it the output of the devnet command saved to a tile named "output.txt"?
Options
- Adevnet & output.txt
- Bdevnet > output.txt
- Cdevnet < output.txt
- Ddevnet I output.txt
How the community answered
(19 responses)- A5% (1)
- B89% (17)
- D5% (1)
Explanation
In Bash, the '>' operator redirects standard output (stdout) to a file, overwriting it. So 'devnet > output.txt' sends the output of the devnet command into output.txt. Option A ('&') is used for background execution. Option C ('<') redirects a file as input to a command. Option D appears to use a pipe ('|'), which sends output to another command, not a file.
Topics
Community Discussion
No community discussion yet for this question.