The shutdown
command lets you bring your system down in a secure way. When shutdown
is executed the system will notify all logged-in users and disallow further logins.
You have the option to shut down your system immediately or after a specific time.
Only users with root (or sudo) privileges can use the shutdown
command.
- Shut down your system immediately:
sudo shutdown now
- Shut down your system after 10 minutes:
sudo shutdown +10
- Shut down your system with a message after 5 minutes:
sudo shutdown +5 "System will shutdown in 5 minutes"
shutdown [OPTIONS] [TIME] [MESSAGE]
Short Flag | Long Flag | Description |
---|---|---|
-r |
- | Reboot the system |
-c |
- | Cancel an scheduled shut down |