Question 70
A Linux operator claims the following problem is resolved: A maintenance window requires shutting down a shared Linux host in ten minutes while notifying active users. Which result best demonstrates an effective repair?
Explanation
Correct Answer
Users receive a warning and the system powers down at the scheduled time unless the job is canceled. This tests actual resulting behavior rather than only the presence of a command or configuration. The relevant remediation is: Schedule shutdown -h +10 with an appropriate explanatory message to logged-in users.
Incorrect Answers
The countdown stops, no unexpected shutdown occurs, and the cancellation is visible to affected operators. That would matter when a previously scheduled system shutdown must be canceled because a maintenance change was postponed. The relevant distinction in this case is: Users receive a warning and the system powers down at the scheduled time unless the job is canceled.
The current boot switches to multi-user.target while systemctl get-default retains the original configured default. That would matter when an administrator needs a temporary non-graphical maintenance session without changing the next boot. It does not address this case's requirement: A maintenance window requires shutting down a shared Linux host in ten minutes while notifying active users.
Active terminal sessions receive the broadcast and the subsequent maintenance follows the announced procedure. That would matter when a team needs to broadcast an urgent warning to users already logged into terminal sessions. That separate mechanism does not verify the needed Linux administration outcome in this case.