温馨提示×

常用的linux关机命令有哪些

小亿
94
2023-07-12 00:38:46
栏目: 智能运维

常用的Linux关机命令有:

  1. poweroff:立即关机。

  2. halt:立即关机。

  3. shutdown:安全关机,可以指定延迟时间。

  4. init 0:立即关机。

  5. init 6:重启系统。

  6. systemctl poweroff:立即关机。

  7. systemctl halt:立即关机。

  8. systemctl reboot:重启系统。

  9. shutdown -h now:立即关机。

  10. shutdown -r now:重启系统。

这些命令通常需要以超级用户(root)身份运行。

0