nerdexam
CompTIACompTIA

XK0-005 · Question #398

XK0-005 Question #398: Real Exam Question with Answer & Explanation

The correct answer is B: systemctl reboot. After a Linux server was switched to rescue.target for maintenance, the administrator needs to restore it to its default operational mode.

System Management

Question

Users have reported that the interactive sessions were lost on a Linux server. A Linux administrator verifies the server was switched to rescue.target mode for maintenance. Which of the following commands will restore the server to its usual target?

Options

  • Atelinit 0
  • Bsystemctl reboot
  • Csystemctl get-default
  • Dsystemctl emergency

Explanation

After a Linux server was switched to rescue.target for maintenance, the administrator needs to restore it to its default operational mode.

Common mistakes.

  • A. telinit 0 shuts down the system, which does not restore it to a running 'usual target' but rather powers it off.
  • C. systemctl get-default only displays the configured default target, it does not switch the system's current target or initiate a boot.
  • D. systemctl emergency switches the system to an even more restricted emergency.target mode, which is the opposite of restoring normal operations.

Concept tested. Systemd targets and runlevels (rescue mode, reboot)

Reference. https://www.freedesktop.org/software/systemd/man/systemctl.html

Topics

#systemd#target units#systemctl#server administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions