What is the Linux timing shutdown command?

Source: Internet
Author: User

What is the Linux timing shutdown command? in the previous tutorial, we shared the Win7 system timing shutdown command to use the method, to the netizens brought a lot of convenience. There are also users of Linux systems, so they are curious: The Linux system's timing shutdown command and Win7 system is the same? What is the command for a Linux system to shut down regularly? In today's tutorial, we'll take a quick look at the same features using the Shutdown command under Linux and using the Shutdown command under Windows.

System shutdown

1.linux below: shutdown [options]

The following options are available:

-K = "Do not perform any shutdown operation, only send warning messages to all users

-R = "Restart the computer

-H = "shutdown and complete power off"

-F = "Skip fsck when fast shutdown and reboot

-n = "Fast Shutdown without init program

-C = "Before the cancellation of the timing of the shutdown

Shut down immediately: Shutdown-h now

Immediate reboot: Shutdown-r now

Note: Here now can not be omitted, is a special use.

2.windows below:

Shutdown.exe-r = "Shut Down and reboot."

Shutdown.exe-a = "Cancel shutdown

Shutdown.exe-s = "Off Machine"

Shutdown.exe-f = "forcibly closes the application."

The SHUTDOWN.EXE-M computer name controls the remote computer.

Shutdown.exe-l = "Log off the current user.

Shutdown.exe-t time to set the shutdown countdown.

In Windows Vista, Microsoft has tightened shutdown.exe,shutdown.exe-h for hibernation (not the same under Linux)

3. (1) Linux automatic shutdown--if you want to shut down after 10 minutes: command: Shutdown-h +10, but you suddenly do not want to shut down 10 minutes later is to use CTRL + C to force the termination of the command. Note: shutdown-h +10 & Command and Shutdown-h +10 are not the same if there are other commands to be executed after the 10-minute shutdown, the shutdown-h +10 & command is used. Use the shutdown-h +10 command if you only have a 10-minute shutdown.

If you want to use the command when shutting down at a specific time:

Shutdown-h 10:01

Note At this point: This command can only be used under Superuser root, and this command is not available under normal users.

(2) Here also say the windows under the timing of a specific time to shutdown the use of the command:

Click Start-run: Input at 10:01 shutdown-s, which is automatic shutdown at 10:01. The computer will appear in the "System Shutdown" dialog box, usually has a 30-second countdown and prompts you to save your work.

You can also use the countdown shutdown: shutdown.exe-s-T 600 here 600 is in S, which is 10 minutes after the automatic shutdown, if you want to cancel the shutdown is the use of command: Shutdown-a.

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.