nerdexam
CiscoCisco

200-901 · Question #18

200-901 Question #18: Real Exam Question with Answer & Explanation

The correct answer is B: devnet > output.txt. {"question_number": 3, "correct_answer": "B", "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.

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

Explanation

{"question_number": 3, "correct_answer": "B", "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.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

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

Community Discussion

No community discussion yet for this question.

Full 200-901 PracticeBrowse All 200-901 Questions