Skip to main content
Kill -9 Club
Sign in

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 -h powers off a server nobody can turn back on without console access; -r reboots. 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 +10 it schedules the reboot instead of starting it at once.
shutdown -c
Cancels a pending shutdown or reboot that was scheduled by a shutdown with a time argument other than now.

Lessons that teach it