將數據同步寫入硬盤:sync
慣用的關機命令:shutdown
shutdown -h now
立刻關機,now相當於時間為0
shutdown -h 10 ' I wil shutdown after 10 mins'
告訴大家這台機器要在十分鍾后關機,並且顯示在登錄者屏幕前方;
shutdown -r now
系統立刻重啟
shutdown -r 30 ' the system will reboot after 30 mins'
shutdown -h 20:25
系統在今天的20:25分關機,若在21:25才執行此命令,則隔天才關機
shutdown -k now 'this system will reboot'
僅發出警告信息的參數,系統並不會關機;
重啟、關機
reboot
halt
poweroff
系統運行級別
run level 0:關機
run level 3 :純命令行模式
run level 5 :含有圖形界面模式
run level 6: 重啟
