Flushes all pending write operations to the appropriate disks. More information: https://www.gnu.org/software/coreutils/sync.
sync
sync path/to/file