阅读量:124
常用的Linux关机命令有:
-
poweroff:立即关机。
-
halt:立即关机。
-
shutdown:安全关机,可以指定延迟时间。
-
init 0:立即关机。
-
init 6:重启系统。
-
systemctl poweroff:立即关机。
-
systemctl halt:立即关机。
-
systemctl reboot:重启系统。
-
shutdown -h now:立即关机。
-
shutdown -r now:重启系统。
这些命令通常需要以超级用户(root)身份运行。