Shutdown of linux system commands

Source: Internet
Author: User
In linux, shutdown is a multi-user, multi-task system. if the system is disabled or restarted incorrectly, user data may be lost. It is possible that the user is executing a key operation or operation. if you do not prompt to disable it... in linux, shutdown is a multi-user, multi-task system. if the system is disabled or restarted incorrectly, user data may be lost. It is possible that the user is executing a key operation or operation. if the system is disabled without prompt, the user will not be able to save the current data, resulting in data loss. Therefore, you should master the correct method of shutting down and restarting the system to avoid data loss.
The shutdownshutdown command is the most commonly used command to shut down the system. it can be used not only to immediately shut down the system, but also to shut down the system at a specified time.
(1) shut down the system one minute later: # shutdown-h 1 because the administrator privilege is required to shut down or restart the system, you should execute shutdown and other system commands as the root user. Immediately shut down the system: www.2cto.com # shutdown-h now (2) shut down the system at a specified time: # shutdown-h when the root user sends a shutdown command, other users in the system will receive the following prompt: the system is going DOWN for system halt in 2 minutes! If you receive this prompt, you should immediately stop ongoing jobs, save necessary data, and then exit the system.
(3) the shutdown command can also be used to restart the system: # shutdown-r 2 the system will be restarted in 2 minutes. If more than one user is using the system, use the shutdown command when shutting down the system and use the delayed shutdown method to avoid data loss. This article is from the fat shark network.
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.