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

                                                              关机重启及注销命令


     

    #更新时间
    [root@clf ~]# yum install  -y  ntpdate
    [root@clf ~]# ntpdate  ntp.aliyun.com

    #关机

    [root@clf ~]# shutdown -h  10  #10分钟之后关机 
    [root@clf ~]# shutdown  -h  now  #立刻关机
    [root@clf ~]# shutdown  -h  0  #立刻关机
    [root@clf ~]# shutdown  -h  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   #退出当前登录的用户   既能退出登录式也能退出非登录式   主要用于脚本退出

    [root@clf ~]# bash
    [root@clf ~]# logout
    bash: logout: not login shell: use `exit'
    [root@clf ~]# exit
    exit
  • 相关阅读:
    jchdl
    jchdl进展
    Verilog缺少一个复合数据类型,如C语言中的结构体
    jchdl-GSL-实例
    硬件建模-几个观点
    非阻塞赋值(Non-blocking Assignment)是个伪需求
    jchdl
    jchdl
    HDU 2686 (双线程) Matrix
    LA 3602 DNA Consensus String
  • 原文地址:https://www.cnblogs.com/chenlifan/p/13260791.html
Copyright © 2011-2022 走看看