2018-10-24 08:08:36 -04:00
|
|
|
---
|
|
|
|
title: Bash shutdown
|
|
|
|
---
|
|
|
|
|
2019-05-17 07:03:13 +01:00
|
|
|
## Bash Command: shutdown
|
2018-10-24 08:08:36 -04:00
|
|
|
|
2019-05-17 07:03:13 +01:00
|
|
|
Typing the shutdown command will schedule your system to be shutdown at a given point in time.
|
2018-10-24 08:08:36 -04:00
|
|
|
|
2019-05-17 07:03:13 +01:00
|
|
|
### Usage
|
2018-10-24 08:08:36 -04:00
|
|
|
|
2019-05-17 07:03:13 +01:00
|
|
|
```bash
|
|
|
|
shutdown [options] when [message]
|
|
|
|
```
|
2018-10-24 08:08:36 -04:00
|
|
|
|
2019-05-17 07:03:13 +01:00
|
|
|
Most used options:
|
|
|
|
* `+m`, will specify the minutes until shutdown.
|
2018-10-24 08:08:36 -04:00
|
|
|
|
2019-05-17 07:03:13 +01:00
|
|
|
* `-h`, will specify the hours until shutdown.
|
2018-10-24 08:08:36 -04:00
|
|
|
|
2019-05-17 07:03:13 +01:00
|
|
|
* `-r`, will trigger a restart of the system after shutting it down.
|
2018-10-24 08:08:36 -04:00
|
|
|
|
2019-05-17 07:03:13 +01:00
|
|
|
Adding a message to the end of the command will display a message of your chosing prior to shutting it down.
|
2018-10-24 08:08:36 -04:00
|
|
|
|
2019-05-17 07:03:13 +01:00
|
|
|
#### More information:
|
|
|
|
|
|
|
|
* SS64: https://ss64.com/bash/shutdown.html
|