3.4.1 数据同步命令
1、sync
sync命令可用来强制将内存缓冲区中的数据立即写入磁盘中,来保证系统在不正常关机时造成内存缓冲区的数据丢失。
[root@localhost ~]# sync
3.4.2 关机重启命令
1、shutdown
[root@localhost ~]# shutdown [选项] 时间 [警告信息]
-c | 取消已经执行的 shutdown 命令 |
---|---|
-h | 关机 |
-r | 重启 |
+[分钟] | 相对时间表示,几分钟后执行 shutdown 命令 |
HH:MM | 绝对时间表示,指明具体时间执行 shutdown 命令 |
now | 立即执行 shutdown 命令 |
- 立即关机或重启
[root@localhost ~]