常用的Linux关机命令有:
poweroff:立即关机。
halt:立即关机。
shutdown:安全关机,可以指定延迟时间。
init 0:立即关机。
init 6:重启系统。
systemctl poweroff:立即关机。
systemctl halt:立即关机。
systemctl reboot:重启系统。
shutdown -h now:立即关机。
shutdown -r now:重启系统。
这些命令通常需要以超级用户(root)身份运行。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:linux关机命令有哪些