shutdown
Shut down or reboot the system
Overview
Schedules a time for the system to be powered down. It can be used to halt, power-off, or reboot the machine, and can notify logged-in users.
Syntax
shutdown [OPTION]... [TIME] [MESSAGE]Common Options
-r, --rebootReboot the system after shutdown.
-h, --haltHalt or power-off the system after shutdown. Often implies power-off.
-P, --poweroffExplicitly power-off the machine after shutdown (default if -h is used on many systems).
-kDon't actually shut down, but send the warning messages to all logged-in users (kibitz).
-cCancel a pending shutdown. No TIME argument can be given with this option.
TIMESpecifies when to perform the shutdown. Can be an absolute time in hh:mm format, or +m for minutes from now. 'now' is an alias for +0.
MESSAGEOptional message to send to all logged-in users before shutdown.
Examples
Shuts down and powers off the system immediately.
Halts the system immediately (may or may not power off depending on system).
Powers off the system immediately.
Reboots the system immediately.
Schedules a reboot in 10 minutes and sends the specified message to users.
Schedules a shutdown (power off) at 10:00 PM (22:00) with a message.
Cancels a pending shutdown.
Sends a warning message to all users but does not actually schedule a shutdown.