home products tech support contact us

 Linux 技術支援    ⇒   基礎篇    進階篇    補腦篇    指令索引    中⇒ENG
版權所有, 引用請註明出處
 

shutdown 關機



因關機是系統指令,故大部份的 Linux 發行版只容許 supersuer 才可執行 shutdown

基本語法 shutdown [OPTIONS] [TIME] [MESSGE] .

重要選項包括:

時間參數可以使用不同格式,例如:

例:
# shutdown -h 10:08 ←指定在 10:08 系統會關機
# shutdown +3 "System will shutdown after 5 minutes" ←指定 3 分鐘後關機並通知其他登入者


其他範例和用法請參考連結