CompTIA Linux+ (XK0-005) — Question 64
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?
Answer options
- A. telinit 0
- B. systemctl reboot
- C. systemctl get-default
- D. systemctl emergency
Correct answer: B
Explanation
The correct answer is B, as executing 'systemctl reboot' will restart the server and bring it back to its default operational state. Option A, 'telinit 0', would shut down the server rather than restore it. Option C, 'systemctl get-default', simply checks the default target without changing it, and Option D, 'systemctl emergency', puts the server into emergency mode, which is not what is needed to return to the usual target.