nerdexam
LPI

202-450 · 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. You've hit your weekly limit · resets 5am (America/New_York)

214 Troubleshooting

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

(19 responses)
  • A
    74% (14)
  • B
    5% (1)
  • C
    11% (2)
  • D
    11% (2)

Explanation

You've hit your weekly limit · resets 5am (America/New_York)

Topics

#rc.local#init scripts#runlevel#boot sequence

Community Discussion

No community discussion yet for this question.

Full 202-450 Practice