Windows and linux shutdown methods (shutdown command)

Source: Internet
Author: User
This article describes how to shut down windows at a specific time and linux at a specific time (shutdown command). If you need it, refer

Windows:
For various reasons, we may need the timed shutdown function. The common practice in windows may be to use some tools or common software (such as cool music box. However, if the software you do not have this function and you do not want to add software to implement this function, you can use a simple command.

The shutdown command can implement the timed shutdown function. the specific parameters are as follows:

-S shutdown

-T latency (seconds)

-R restart

-I call up the shutdown setting Box

For example, you need to close the computer in ten minutes:

C :\> shutdown-s-t 600

Linux:

Similarly, it is easy to implement in linux:

Enter at the terminal:

Sudo shutdown + 10 indicates that the computer will shut down after 10 minutes. If you want to cancel shutdown again, you can use ctrl + c to cancel it. if you have closed the terminal window, you can re-open a terminal and enter sudo shutdown-c to cancel the shutdown task.

Other parameters of this command:

-K does not actually shut down, but only sends a warning message to all users.

-R restarts immediately after shutdown.

-H: do not restart after shutdown

-F: Skip fsck during fast shutdown and restart

-N: Fast Shutdown without passing through the init Program

-Shut down at h.

-Q 100: shut down the running program after 100 minutes

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.