Proper shutdown method (shutdown, reboot, init, halt)

Source: Internet
Author: User
The correct shutdown method (shutdown, reboot, init, halt)-Linux general technology-Linux technology and application information. For more information, see the following. Data Synchronization write to disk command: sync. Currently, the shutdown/reboot/halt commands have all been called by sync before shutdown, but it is quite reassuring to do more times.
?? Common shutdown command: shutdown
?? Only the root user has the permission to shut down the server. If the command is not run by the root user in the command line format, the command is not found.
?? The shutdown command can be implemented as follows:
?? 1. Select the shutdown mode as needed: to shut down/restart/enter the single-user operation mode;
?? 2. Set the shutdown time. You can set it to shutdown immediately or set a specific time;
?? 3. Custom shutdown information: before shutdown, you can send the information you set to online users;
?? 4. Send only warning messages: If the instance is not shut down, it will only send a notification to each user.
?? On the fc8 I installed, the shutdown command is in/sbin/. For example:
?? /Sbin/shutdown-h now ----- shut down immediately;
?? /Sbin/shutdown-h ---- shutdown
?? /Sbin/shutdown-h + 10-----10 minutes later shutdown
?? /Sbin/shutdown-r now ----- restart now
?? /Sbin/shutdown-r + 10 'the system will reboot' ---- restart The system 10 minutes later and send a notification to each login user
?? /Sbin/shutdown-k now 'the system will reboot' ---- only send a notification to each login user and it is not true to shut down

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.