常用的Linux關機命令有:
poweroff:立即關機。
halt:立即關機。
shutdown:安全關機,可以指定延遲時間。
init 0:立即關機。
init 6:重啟系統。
systemctl poweroff:立即關機。
systemctl halt:立即關機。
systemctl reboot:重啟系統。
shutdown -h now:立即關機。
shutdown -r now:重啟系統。
這些命令通常需要以超級用戶(root)身份運行。