nerdexam
LPI

202-400 · Question #176

An administrator wants to issue the command echo 1 >/var/ log/boater.log once all of the scripts in /etc/rc2.d have been executed. What is the best way to accomplish this?

The correct answer is A. Add the command to /etc/rc.local. See the full explanation below for the reasoning.

Question

An administrator wants to issue the command echo 1 >/var/ log/boater.log once all of the scripts in /etc/rc2.d have been executed. What is the best way to accomplish this?

Options

  • AAdd the command to /etc/rc.local
  • BCreate a script in ~/.kde/Autostart/ and place the command in it
  • CCreate a script in /etc/init.d/ and place a link to it in /etc/rc2.d/
  • DCreate a script in /etc/rc2.d/ and place the command in it

How the community answered

(29 responses)
  • A
    83% (24)
  • B
    3% (1)
  • C
    3% (1)
  • D
    10% (3)

Community Discussion

No community discussion yet for this question.

Full 202-400 Practice