Shut down Linux, shut down the system Shutdown command

Source: Internet
Author: User
Shut down Linux and shut down the system Shutdown command-general Linux technology-Linux technology and application information. For more information, see the following. Only root users can use this command. Generally, this command cannot be executed.

Let's first look at the showdown Syntax:

Shutdown [options] when [message]

Options:-r indicates that the instance is restarted,-h indicates that the instance is shut down immediately after the system service is stopped (halt), and-f indicates that the instance is restarted quickly.

When: Specifies the shutdown time. Hh: mm: absolute time, hh refers to the hour, mm refers to the minute; for example, after, + m: m minutes, now = + 0, that is, immediate execution

Message: indicates the broadcast information of the system. Generally, the system is prompted to shut down or restart each user. You must save the information and exit.

Let's take a look at several examples:
Shutdown-h now shut down immediately
Shutdown-h today shutdown
Shutdown-h + 10 minutes later shutdown
Shutdown-r now restart immediately
Shutdown-r + 10' the system will reboot 'will be restarted 10 minutes later. the Administrator prompts you that the system is about to be restarted, so that you can save your work materials. Only root users can use this command.

Let's shutdown-h now to see if shutdown is done immediately.
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.