linux -- 登出,關機,重啟

來源:互聯網
上載者:User

標籤:

 

  
登出:logout
  Logout 登出是登陸的相對操作,登陸系統後,若要離開系統,使用者只要直接下達logout命令即可:

  [[email protected] root]#logout

  Red Hat Linuxrelease 9(Shike)   

  Kernel 2.4.20.8 on an i686   

  Login: ← 回到登陸的畫面


  
關機或重新啟動:shutdown

  Shutdown命令可以關閉所有程式,依照使用者的需要,重新啟動或關機。   

  立即關機:

  -h 參數讓系統立即關機

  [[email protected] root]#shutdown –h now ← 要求系統立即關機   

 

  指定關機時間:

  time參數可指定關機的時間;或設定多久時間後運行shutdown命令 

  [[email protected] root]#shutdown now ← 立刻關機   

  [[email protected] root]#shutdown +5 ← 5分鐘後關機   

  [[email protected] root]#shutdown 10:30 ← 在10:30時關機  

  

  關機後自動重啟:

  -r 參數設定關機後重新啟動

  [[email protected] root]#shutdown -r now ← 立刻關閉系統並重啟   

  [[email protected] root]#shutdown -r 23:59 ← 指定在23:59時重啟動 


  
重新啟動電腦:reboot

  顧名思義,reboot命令是用來重新啟動系統的。常用的參數如下:

  -f 參數:不依正常的程式運行關機,直接關閉系統並重新啟動電腦。

  -I 參數:在在重新啟動之前關閉所有網路介面。

  雖然reboot命令有個參數可以使用,但是一般只需要單獨運行reboot命令就可以了 

linux -- 登出,關機,重啟

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.