nerdexam
EC-Council

ECSS · Question #113

You work as the Network Administrator for McNeil Inc. The company has a Linux-based network. You are working as a root user on Red Hat operating system. You are currently running a program named…

The correct answer is C. My_program 2> file2. See the full explanation below for the reasoning.

Question

You work as the Network Administrator for McNeil Inc. The company has a Linux-based network. You are working as a root user on Red Hat operating system. You are currently running a program named My_program. You are getting some error messages while executing the program. You want to redirect these error messages to a file named file2 rather than being displayed on the screen. Which of the following tools should you use to accomplish the task?

Options

  • AMy_program 2>> file2
  • BMy_program >> file2
  • CMy_program 2> file2
  • DMy_program > file2

How the community answered

(49 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    84% (41)
  • D
    10% (5)

Community Discussion

No community discussion yet for this question.

Full ECSS Practice