Linux shutdown Command
The Linux shutdown command is used to initiate a shutdown procedure and sends a message to all users' running processes before shutting down. It can also be used to reboot the system.
Usage Permission: System administrator.
Syntax
shutdown [-t seconds] [-rkhncfF] time [message]
Parameter Description:
-t seconds : Set the number of seconds after which the shutdown process will occur.
-k : Does not actually shut down, only sends a warning message to all users.
-r : Reboots after shutdown.
-h : Halts after shutdown.
-n : Does not use the normal shutdown procedure, forcibly kills all running processes and then shuts down.
-c : Cancels the currently ongoing shutdown action.
-f : Does not perform fsck (file system check) during shutdown.
-F : Forces fsck to be performed during shutdown.
time : Sets the time for shutdown.
message : The warning message to be sent to all users.
Examples
Immediate shutdown
# shutdown -h now
Shutdown in 10 minutes
# shutdown -h 10
Reboot the computer
# shutdown -r now