Linux正确的关机流程:
1.sync --先将缓存的数据写入磁盘
2.shutdown --关机指令
3.shutdown -h now --立马关机
4.shutdown –h 20:25 --系统会在今天20:25关机
5.shutdown –h +10 --十分钟后关机
6.shutdown –r now --系统立马重启
7.shutdown –r +10 --系统十分钟后重启
reboot --重启,等同于 shutdown –r now
halt --关闭系统,等同于shutdown –h now 和 poweroff
注意:不管是重启系统还是关闭系统,首先要运行"sync"命令,把内存中的数据写到磁盘中