shutdown

>Usage

The shutdown command safely powers off or reboots the computer. Many shutdown commands require administrative privileges, so prepend sudo to the command for proper execution, e.g., sudo shutdown -h now.

>Synopsis

shutdown [option] <time>

>Options

-h now

using this command makes the program shut down immediately.

Example 1:

Dots

-zsh

shutdown -h now


Broadcast message from user@hostname

The system is going down for halt NOW!

-P now

Powers off the system immediately.

Example 2:

Dots

-zsh

shutdown -P now


Broadcast message from user@hostname

The system is going down for power off NOW!

-i

Schedules a system shutdown at a specific time.

Example 3:

Dots

-zsh

hh:mm <time>


Broadcast message from user@hostname

The system is going down for halt at 23:30!

-c

Cancels any previously scheduled shutdown or reboot.

Example 4:

Dots

-zsh

shutdown -c <time>


user@hostname:~$ shutdown -c
Shutdown scheduled for 23:30 has been canceled.

-k now

Sends a warning message to all logged-in users but does not shut down the system.

Example 5:

Dots

-zsh

shutdown -k now


Broadcast message from user@hostname

he system is NOT going down, but users are being warned.

>Quiz

Progress: Question ? out of ?

Question Title

Page written by Amos Disha