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