Linux中关机,重启,注销命令

Linux中关机,重启,注销命令

关机:

  shutdown -h now  #立刻关机重启,工作中常用

  shutdown -h +1    #1分钟后关机

  init 0

  halt                        #立即停止系统,需要人工关闭电源

  halt -p                    #

  poweroff      #立即停止系统,并且关闭电源

重启:

  reboot      #工作中常用

  shutdown -r now      #工作中常用

  shutdown -r +1   #一分钟后重启

  init 6

注销:

  logout

  exit      #工作中常用

  ctrl+d     #工作中常用

猜你喜欢

转载自blog.csdn.net/andyzhaojianhui/article/details/85253617