注意: 不管是重启系统还是关闭系统,首先要运行sync命令,把内存中的数据写到磁盘中
shutdown -h now |
立该进行关机 【halt】 |
---|---|
shutdown -h 1 “hello,关机" |
"hello, 1 分钟后会关机了" |
shutdown -r now |
现在重新启动计算机 [reboot] |
halt |
关机 |
reboot |
现在重新启动计算机 |
sync |
把内存的数据同步到磁盘. |