shutdown
systemdPackage: systemd-sysvHandle with care
Halts or reboots the machine, now or at a stated time, warning open sessions. shutdown -c cancels what is scheduled.
A mistake with this command can destroy data or lock you out
- On a remote machine,
shutdown -hpowers off a server nobody can turn back on without console access;-rreboots. Reread the letter before Enter, and check the SSH service is enabled at boot.
What its options do in the lessons
From the same glossary the lessons render under their commands, so the two cannot disagree.
shutdown -r- Reboots the machine rather than powering it off. With a time argument such as
+10it schedules the reboot instead of starting it at once. shutdown -c- Cancels a pending shutdown or reboot that was scheduled by a
shutdownwith a time argument other thannow.
