Files
linux.softwareshinobi.com/landing/docs/Linux-Commands/System/056-the-shutdown-command.md
Software Shinobi aa880afc23
All checks were successful
learn org at code.softwareshinobi.com/linux.softwareshinobi.com/pipeline/head This commit looks good
automated push from the terminal
2025-06-18 09:50:07 -04:00

40 lines
909 B
Markdown

# The `shutdown` command
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.
### Examples:
1. Shut down your system immediately:
```
sudo shutdown now
```
2. Shut down your system after 10 minutes:
```
sudo shutdown +10
```
3. Shut down your system with a message after 5 minutes:
```
sudo shutdown +5 "System will shutdown in 5 minutes"
```
### Syntax:
```
shutdown [OPTIONS] [TIME] [MESSAGE]
```
### Additional Flags and their Functionalities:
|**Short Flag** |**Long Flag** |**Description** |
|:---|:---|:---|
|`-r`|<center>-</center>|Reboot the system|
|`-c`|<center>-</center>|Cancel an scheduled shut down|