Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 170

When using the Bash shell, how is the output of the devnet command saved to a file named `output.txt`?

Answer options

Correct answer: A

Explanation

The correct answer is A, as the '>' operator is used in Bash to redirect the output of a command to a specified file. Option B uses the pipe operator '|', which is for passing output to another command, not for saving to a file. Option C uses the '<' operator, which is for input redirection, and option D uses '&', which is for running a command in the background, neither of which saves output to a file.