CMD shutdown command (by someone else)

Source: Internet
Author: User

Shutdown

Timed Shutdown
For example, if you want to shut down at, enter at shutdown-S
, The system will prompt 30 seconds in advance, and then turn yourself off.
At shutdown-s countdown Shutdown
Shutdown.exe-S-T 10 the system shuts down after 10 seconds to cancel Automatic shutdown:
Enter the shutdown-a shutdown parameter description in start-> run:
[-T]
Before changing to another runlevel, tell init how long it will take to shut down.
[-S] disable this computer

[-R] restart the calculator.
[-K] does not actually shut down, but sends a warning signal to each consumer [Login 〕.

[-H] power off after Shutdown [halt 〕.
[-N]
You don't need to use init, but shut down it yourself. You are not encouraged to use this option, and the consequences of this option are not always what you expected.
[-C] cancel current
Process cancels the currently running Shutdown program. Therefore, this option certainly does not have a time parameter, but you can enter a message for explanation, and this information will be sent to each user.
[-F]
Ignore fsck when restarting calculator [reboot.
[-F]
Force fsck when restarting calculator [reboot.
[-Time]
Set the time before shutdown.
2. Halt ---- the simplest shutdown command in fact, halt is to call Shutdown
-H. When halt is executed, the application process is killed and the sync system call is executed. After the file system write operation is completed, the kernel is stopped.
Parameter description:

[-N] prevents the sync system from calling. It is used to fix the root partition with fsck to prevent the kernel from overwriting the repaired super block with the old version of superblock.
[-W]
It is not a real restart or shutdown, but a record for wtmp (/var/log/wtmp.
[-D]
Do not write the wtmp record (included in Option [-N 〕.
[-F]
Force shutdown or restart without calling shutdown.
[-I] disable all network interfaces before shutting down (or restarting.

[-P] this option is the default option. It is called poweroff when shutdown.

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.