Linux基础学习笔记-第四课:NANO、开关机

  1. nano:

    1. 调出帮助:F1或者Ctrl+G

    2. ^代表Ctrl,M代表Alt

  2. 关机:应有的步骤

    1. 检查系统使用状态:

      1. who :检查在线用户

      2. netstat -a:检查网络连接

      3. ps -aux :检查后台程序执行情况

    2. 通知在线用户关机时间:shutdown命令

    3. 数据写入硬盘:sync

    4. 关机或重启:shutdown / restart / halt / poweroff / init 0

    5. shutdown -h now :立即关机

      shutdown -h 20:25 : 20:25分关机

      shutdown -h +10 : 10分钟后关机

      shutdown -r now : 马上重启

      shutdown -r 30 'xxxxxxx' : 30分钟后重启系统,显示xxxxx给在线用户

      shutdown -k now 'xxxxxx' : 只发出消息,并不真正重启/关机

    6. init : 0级别为关机,6级别为重启


你可能感兴趣的:(linux,程序,网络连接,在线用户,XXXXXX)