Liunx关机重启

Liunx关机重启

(1)sync (功能描述:将数据由内存同步到硬盘中)
(2)shutdown [选项] 时间
选项:
-h:关机
-r:重启
(3)halt (功能描述:关闭系统,等同于shutdown –h now 和 poweroff)
(4)reboot (功能描述:就是重启,等同于 shutdown –r now)

注意:不管是重启系统还是关闭系统,首先要运行sync命令,把内存中的数据写到磁盘中。

猜你喜欢

转载自blog.csdn.net/weixin_43939924/article/details/114952558
今日推荐