zoukankan      html  css  js  c++  java
  • Linux关机/重启/及注销命令

    #关机

    [root@clf ~]# shutdown -h  10            #10分钟之后关机 
    [root@clf ~]# shutdown  -h  now        #立刻关机
    [root@clf ~]# shutdown  -h  0             #立刻关机
    [root@clf ~]# shutdown  -h  11:00      #定时关机 (11:00关机)
    [root@clf ~]# poweroff                        #立刻关机 
    [root@clf ~]# halt -p                            #立刻关机
    [root@clf ~]# init 0                              #立刻关机    通过系统的运行级别
     
    #重启
    [root@clf ~]# shutdown  -r   10                   #10分钟之后进行重启
    [root@clf ~]# shutdown  -r   0                     #立刻重启
    [root@clf ~]# shutdown  -r   now                 #立刻重启
    [root@clf ~]# shutdown  -r   11:00               #定时重启

    [root@clf ~]# reboot                                     #立刻重启 
     
     
     
    #注销   退出当前登录的用户

    [root@clf ~]# logout                       #退出当前登录的用户   只能退出登录式Shell,不能退出非登录式Shell
    Ctrl键 +  d                                      #快捷键                      退出当前登录的用户
    [root@clf ~]# exit                           #退出当前登录的用户   既能退出登录式也能退出非登录式   主要用于脚本退出
     
     
     
     
     
     
     
     
     
  • 相关阅读:
    UVa 11440 Help Tomisu (欧拉函数)
    理解最小路径覆盖(转)
    bzoj 3196: Tyvj 1730 二逼平衡树
    splay
    bzoj 3223: Tyvj 1729 文艺平衡树
    小奇的糖果(candy)
    线性函数
    bzoj 4408: [Fjoi 2016]神秘数
    bzoj 4446: [Scoi2015]小凸玩密室
    bzoj 4443: [Scoi2015]小凸玩矩阵
  • 原文地址:https://www.cnblogs.com/chenlifan/p/13262963.html
Copyright © 2011-2022 走看看