shutdown其实是调用init 0, init 0会cleanup一些工做而后调用halt或者poweroff。其实主要区别是halt和poweroff,作没有acpi的系统上,halt只是关闭了os,电源还在工做,你得手动取按一下那个按钮,而poweroff会发送一个关闭电源的信号给acpi。但在如今的系统上,他们实际上都同样了接口
说明: ACPI表示高级配置和电源管理接口(Advanced Configuration and Power Management Interface)it
参考资料:io
https://www.zhihu.com/question/22060662dva