Linux学习笔记(简介及指令)

sync 将数据由内存同步到硬盘中。
shutdown 关机指令
reboot 重启,等同于 shutdown –r now
halt 关闭系统,等同于shutdown –h now 和 poweroff
不管是重启系统还是关闭系统,首先要运行 sync 命令,把内存中的数据写到磁盘中。
关机的命令有 shutdown –h now halt poweroff 和 init 0 , 重启系统的命令有 shutdown –r now reboot init 6。

猜你喜欢

转载自blog.csdn.net/zhao2chen3/article/details/80875412