Linux關機和重啟命令總結

2021-08-26 19:07:37 字數 554 閱讀 9317

環境:redhat linux enterprise 6+virtual box 4.1

linux關機和重啟命令總結

關機命令:

shutdown -h now(立刻進行關機)

halt(立刻進行關機)

poweroff(立刻進行關機

重啟命令:

shutdown -r now(現在重新啟動計算機)

reboot(現在重新啟動計算機)

區別:

shutdown -h now和shutdown -r now必須是root使用者或者具有root許可權的使用者才能使用,而halt和reboot是linux系統中的任何使用者都可使用,不需要root許可權。

聯絡:halt 與 poweroff 具有相同的功能。

Linux關機和重啟命令總結

環境 redhat linux enterprise 6 virtual box 4.1 linux關機和重啟命令總結 關機命令 shutdown h now 立刻進行關機 halt 立刻進行關機 poweroff 立刻進行關機 重啟命令 shutdown r now 現在重新啟動計算機 reboo...

Linux關機和重啟命令總結

關機命令 shutdown h now 立刻進行關機 halt 立刻進行關機 poweroff 立刻進行關機 重啟命令 shutdown r now 現在重新啟動計算機 reboot 現在重新啟動計算機 區別 shutdown h now和shutdown r now必須是root使用者或者具有ro...

linux 關機和重啟命令

linux中常用的關機和重新啟動命令有shutdown halt reboot以及init,它們都可以達到關機和重新啟動的目的,但是每個命令的內部工作過程是不同的,下面將逐一進行介紹。1 shutdown shutdown命令用於關閉linux系統。有些使用者會使用直接斷掉電源的方式來關閉linux...