nerdexam
GIAC

GSNA · Question #325

You run the wc -c file1.txt command. If this command displays any error message, you want to store the error message in the error.txt file. Which of the following commands will you use to accomplish…

Sign in or unlock GSNA to reveal the answer and full explanation for question #325. The question stem and answer options stay visible for context.

Linux/Unix System Auditing

Question

You run the wc -c file1.txt command. If this command displays any error message, you want to store the error message in the error.txt file. Which of the following commands will you use to accomplish the task?

Options

  • Awc -c file1.txt >>error.txt
  • Bwc -c file1.txt 1>error.txt
  • Cwc -c file1.txt 2>error.txt
  • Dwc -c file1.txt >error.txt

Unlock GSNA to see the answer

You've previewed enough free GSNA questions. Unlock GSNA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#stderr redirection#Linux shell#wc command#file redirection
Full GSNA Practice