freeCodeCamp/guide/english/bash/bash-shutdown/index.md

444 B

title
Bash shutdown

Bash Command: shutdown

shutdown - typing the shutdown command will schedule your system to be shutdown at a given point in time.

Options:

+m , will specify the minutes until shutdown.

-h , will specify the hours until shutdown.

-r , will trigger a restart of the system after shutting it down.

message , will display a message of your chosing prior to shutting it down.

Syntax:

shutdown -h +m message