Linux sync Command
The Linux sync command is used for data synchronization; it is used when shutting down a Linux system.
When data to be written to disk in a Linux system is sometimes written to the filesystem buffer for efficiency, that buffer is a region of memory. If data destined for disk is stored in this buffer and the system suddenly loses power, the data will be lost. The sync command forces data stored in the buffer to be written to disk.
Syntax
sync
Linux Command Reference