Introduction | The system administrator will notify all logged-in users that the system will be shut down, and new users will no longer be able to log in. By executing the parameter shutdown command, you can directly shut down the Linux host or shut down the host after a specified time, or perform a shutdown operation and then restart the host. During this process, programs such as vi and mail run by other users can have time to save the document being edited and exit normally. |
The shutdown command sends a signal to the init program, asking it to change the system run level runlevel to 0. The shutdown command can complete the following operations:
So how to use the shutdown command? Should I execute shutdown directly or do I need to add parameters before executing it? "Man" anytime and anywhere is a good habit for learning Linux. You can also use shutdown --help to view how to use the command. In comparison, man shutdown returns a more detailed command explanation.
The simple syntax rules of the shutdown command are:
shutdown [-krhc] [时间] [警告信息内容]
The above is the detailed content of Shutdown command format of CentOS shutdown method. For more information, please follow other related articles on the PHP Chinese website!