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.
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 0shuts down the system, which does not restore it to a running 'usual target' but rather powers it off. - C.
systemctl get-defaultonly displays the configured default target, it does not switch the system's current target or initiate a boot. - D.
systemctl emergencyswitches the system to an even more restrictedemergency.targetmode, 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
Community Discussion
No community discussion yet for this question.