linux命令sync,shutdown

1、数据同步写入磁盘: sync

输入sync,那举在内存中尚未被更新的数据,就会被写入硬盘中
hling@hling:~$ sync
 
2、惯用的关机指令:shutdown
实例:
原文地址:https://www.cnblogs.com/1510152012huang/p/8798458.html