Home > Article > Operation and Maintenance > shutdown What is the command to shut down immediately?
shutdown The command to shut down immediately is "shutdown -h now"; the shutdown command can be used to perform the shutdown process and send messages to all programs being executed by the user before shutting down. Shutdown can also be used to restart the computer. .
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
shutdown What is the command to shut down immediately?
shutdown The command to shut down immediately is "shutdown -h now".
Linux shutdown command can be used to perform the shutdown process and send messages to all programs being executed by the user before shutting down. Shutdown can also be used to restart the computer.
Usage permissions: System administrator.
Syntax
shutdown [-t seconds] [-rkhncfF] time [message]
Parameter description:
-t seconds: Set the shutdown procedure after a few seconds.
-k: It will not actually shut down the computer, but will only send a warning message to all users.
-r: Shut down and then restart.
-h : Stop after shutdown.
-n: Instead of using normal procedures to shut down, forcefully kill all running programs and then shut down automatically.
-c: Cancel the shutdown action currently in progress.
-f: When shutting down, do not perform fsck action (check Linux file system).
-F: Force fsck action when shutting down.
time: Set the shutdown time.
message: Warning message sent to all users.
Example
Shut down immediately
# shutdown -h now
Specify shutdown after 10 minutes
# shutdown -h 10
Restart the computer
# shutdown -r now
Recommended study: "Linux video tutorial》
The above is the detailed content of shutdown What is the command to shut down immediately?. For more information, please follow other related articles on the PHP Chinese website!