Linux常用命令 — 关机重启shutdown、reboot、logout

707 阅读1分钟

关机

    shutdown

           功能:关机

           语法:shutdown [选项] 时间

           选项:-c         取消前一个关机命令

                     -h         关机

                     -r          重启

            常用:shutdown -h -now 马上关机

其他关机命令

    halt

    poweroff 直接断电

    init0

重启 

      reboot 

             功能:重启

             语法:reboot  

其他重启命令

init 6

退出登录

      logout