linux正确的关机方法

[root@localhost ~]# sync #数据写入磁盘
[root@localhost ~]# shutdown -h 10 #通知用户再过10分钟就关机
[root@localhost ~]# shutdown -r 10 #通知用户再过10分钟就重启
原文地址:https://www.cnblogs.com/justlikeheaven/p/6695455.html