The shutdown command can safely shut down or restart the Linux system. it prompts a warning message to all logged-on users before the system is shut down. This command also allows you to specify a time parameter, which can be a precise time or a time period from now on. The shutdown command can safely shut down or restart the Linux system. before the system is shut down, it prompts a warning message to all login users on the system. This command also allows you to specify a time parameter, which can be a precise time or a time period from now on.
The exact time format is hh: mm, indicating the hour and minute, and the time period is represented by + and the number of minutes. The system automatically synchronizes data after executing this command.
Parameters:
-C when executing the "shutdown-h 11: 50" command, you only need to press the + key to interrupt the command for shutdown.
-F: fsck is not executed during restart.
-F: execute fsck when restarting.
-H: shut down the system.
-K only sends information to all users, but does not actually shut down.
-N does not call the init Program to shut down, but is implemented by shutdown itself.
-R shutdown and restart.
-T <Seconds> The number of seconds between sending the warning message and deleting the message.
[Time] How long will the shutdown command be executed.
[Warning information] information to be sent to all login users.
Note that this command can only be used by Super users.
Example 1: the system shuts down in 10 minutes and restarts immediately.
# Shutdown-r + 10
Example 2: The system is shut down immediately without restarting
# Shutdown-h now
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service