The data to be written to the hard disk in the Linux system is sometimes written to the filesystem buffer for efficiency. This buffer is a memory space. If the data to be written to the hard disk is stored in this buffer, and the system suddenly loses power If so, the data will be lost, and the sync command will force the data stored in the buffer to be written to the hard disk.