Linux shutdown mode

Source: Internet
Author: User

Linux shutdown command:

1- init 0 shutdown.

Specific details accept can be init--help query as follows:


init [OPTIONS ...] {COMMAND}

Send control commands to the init daemon.

--help Show This Help
--no-wall Don ' t send wall message before Halt/power-off/reboot

Commands:
0 Power-off the Machine
6 Reboot the Machine
2, 3, 4, 5 Start runlevelx.target Unit
1, S, S Enter rescue mode
Q, q Reload init daemon configuration
u, u reexecute init daemon

2-shutdown-h now shuts down shutdown details are as follows:

--help Show This Help
-H--halt halt the Machine
-P--poweroff Power-off the machine
-R--reboot Reboot the Machine
-h equivalent to--poweroff, overridden by--halt
-K Don ' t halt/power-off/reboot, just send warnings
--no-wall Don ' t send wall message before Halt/power-off/reboot
-C Cancel a pending shutdown

3-halt command


Halt the system.

--help Show This Help
--halt Halt the Machine
-P--poweroff Switch off the machine
--reboot Reboot the Machine
-F--force Force immediate halt/power-off/reboot
-W--wtmp-only Don ' t halt/power-off/reboot, just write wtmp record
-D--no-wtmp Don ' t write wtmp record
--no-wall Don ' t send wall message before Halt/power-off/reboot

4-poweroff

Power off the system.

--help Show This Help
--halt Halt the Machine
-P--poweroff Switch off the machine
--reboot Reboot the Machine
-F--force Force immediate halt/power-off/reboot
-W--wtmp-only Don ' t halt/power-off/reboot, just write wtmp record
-D--no-wtmp Don ' t write wtmp record
--no-wall Don ' t send wall message before Halt/power-off/reboot

Linux shutdown mode

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.