nerdexam
Cisco

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…

Infrastructure and Automation

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)
  • A
    5% (1)
  • B
    89% (17)
  • D
    5% (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

#Bash shell#Output redirection#CLI basics#Linux commands

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice