Shutdown command shutdown and restart in Linux

Source: Internet
Author: User

Reboot command:

1, reboot
2. shutdown-r now reboot (root user)
3, Shutdown-r 10 over 10 minutes automatic restart (root user use)
4, Shutdown-r 20:35 reboot at 20:35 time (root user)
If you set the reboot through the shutdown command, you can cancel the reboot with the SHUTDOWN-C command

Shutdown reference

Shutdown parameter Description:

[-t] before changing to other runlevel? Tell Init how long to shut down.

[-R] to restart the calculator.

[K] does not really shut down? Just send a warning signal to each person who (login) the login.

[-h] turn off the power (halt) after shutting down the computer.

[-n] do not use init? Instead, you shut down the machine. Do not encourage the use of this option? and the consequences of this option are often not always what you expect.

[-c] Cancel current process cancels the currently executing shutdown program. So, of course, there is no time parameter for this option, but can you enter a message to explain? And this information will be sent to each user.

[-f] ignores fsck while restarting Calculator (reboot).

[-f] Forces fsck when the calculator (reboot) is restarted.

[-time] To set the time before the shutdown (shutdown)

Shutdown command:

1, halt immediately shut down the machine
2, Poweroff immediately shut down the machine
3, Shutdown-h now shut down immediately (root user use)
4, shutdown-h 10 10 minutes after automatic shutdown
If you are setting the shutdown via the shutdown command, you can cancel the reboot with the SHUTDOWN-C command


Parameter description:

[-n] Prevent sync system calls? It is used after patching the root partition with fsck to prevent the kernel from overwriting the patched super blocks with the old version of the Super Block (superblock).

[-W] is not a real reboot or shutdown? Just write Wtmp(/var/log/wtmp) records.

[-d] does not write Wtmp records (already included in options [-n]).

[-f] forced shutdown or reboot without invoking shutdown.

[i] turn off all network interfaces before shutting down (or rebooting).

[-p] This option is the default option. is to call Poweroff on shutdown.

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.