zoukankan      html  css  js  c++  java
  • Linux 关机命令

    正确的关机流程是:sync –> shutdown/reboot/halt/poweroff

    sync 将数据由内存同步到硬盘中。

    shutdown 关机指令。例如你可以运行如下命令关机:

    shutdown –h 10 ‘This server will shutdown after 10 mins’ 这个命令告诉大家,计算机将在10分钟后关机,并且会显示在登陆用户的当前屏幕中。

    Shutdown –h now 立马关机

    Shutdown –h 20:25 系统会在今天20:25关机

    Shutdown –h +10 十分钟后关机

    Shutdown –r now 系统立马重启

    Shutdown –r +10 系统十分钟后重启

    reboot 就是重启,等同于 shutdown –r now

    halt 关闭系统,等同于shutdown –h now 和 poweroff

    关机命令有:

    shutdown –h now

    poweroff

    halt

    init 0

    重启命令有:

    shutdown –r now

    reboot

    init 6

  • 相关阅读:
    实验一
    BZOJ 2564
    P4557 [JSOI2018]战争
    移动自动化-Mac-IOS-appium环境搭建
    Node安装mac版本
    删除N天前文件和空文件
    Python之jsonpath模块
    性能学习
    参数化
    查找测试用例
  • 原文地址:https://www.cnblogs.com/wanhuan/p/5814983.html
Copyright © 2011-2022 走看看