1、直接关电源
2、init 0
3、telinit 0
4、shutdown -h now
5、halt
6、poweroff
延伸:shutdown -s/h now 关机; shutdown -r now 重启 ; halt 关机; init 0 关机; init 1 重启。
本文详细介绍了Linux系统中用于关机、重启的操作命令,包括直接关电源、init、shutdown、halt、poweroff等,并提供了相关命令的使用示例。
1、直接关电源
2、init 0
3、telinit 0
4、shutdown -h now
5、halt
6、poweroff
延伸:shutdown -s/h now 关机; shutdown -r now 重启 ; halt 关机; init 0 关机; init 1 重启。

被折叠的 条评论
为什么被折叠?