zoukankan      html  css  js  c++  java
  • Linux关机操作

    正确的关机流程为:sync > shutdown > reboot > halt

    关机指令为:shutdown ,你可以man shutdown 来看一下帮助文档。

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

    sync 将数据由内存同步到硬盘中。
    
    shutdown 关机指令,你可以man 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

    最后总结一下,不管是重启系统还是关闭系统,首先要运行 sync 命令,把内存中的数据写到磁盘中。

    关机的命令有 shutdown –h now halt poweroff init 0 , 重启系统的命令有 shutdown –r now reboot init 6

     
  • 相关阅读:
    4.2Python数据类型(2)之布尔类型
    4.1Python数据类型(1)之数值类型
    AvalonJS+MVVM实战部分源码
    数据库的总结
    面向对象的Java实现
    静态HTML总结
    JS总结
    JSP开发Web应用系统
    使用C#开发数据库应用程序
    深入.NET平台和C#编程
  • 原文地址:https://www.cnblogs.com/pcx105/p/8658217.html
Copyright © 2011-2022 走看看