温馨提示×

常用的linux关机命令有哪些

小亿
109
2023-07-12 00:38:46
栏目: 智能运维
Linux服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

常用的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)身份运行。

亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

推荐阅读:linux关机命令有哪些

0