Sync
lastmod 2026-02-06created 2026-02-063 edits
Forces pending write operations left in memory buffers to be flushed to disk. Linux buffers disk writes for performance, and calling sync waits until all data in the buffers has actually been written to the disk (USB).
Usage
Using the oflag=sync option in dd works on the same principle, guaranteeing synchronization for every block write.