Power off or reboot the system
high risk
shutdown -r +10 "message"Schedule with a warningshutdown -cCancel if it was a mistakeSchedules a halt, poweroff or reboot with a warning message.
| Flag | Meaning |
|---|---|
-h | Halt / power off |
-r | Reboot |
-c | Cancel a scheduled shutdown |
now | Immediate (argument) |
shutdown -r +5 "maintenance"Reboot in 5 minutes · explain & risk-check →shutdown -cCancel · explain & risk-check →Reference text is hand-written and may be incomplete — check man shutdown for your version. Test destructive commands on a non-production system first.