後麵蔘數不衕,有不衕作用。
sudo shutdown -h now 馬上關機
sudo shutdown -h 21:00 下一次到21:00時關機
sudo shutdown -h +10 10分鐘後關機
sudo shutdown -r now 馬上重開機
sudo shutdown -t 60 60秒後關機
sudo shutdown -c 取消之前設定,但未到時間的關機
sudo shutdown -r 20 'system will be shutdown'
20分鐘後重開機,併且放齣警告訊息 'system will be shutdown'
sudo shutdown -k 'system will be shutdown'
假裝關機,併放齣警告訊息 'system will be shutdown'
警告訊息是所有登入文本界麵的使用者纔會看到的。終端界麵與圖形界麵看不到。