Files
tldr/pages/linux/sync.md
T
open-source-learnerandManagor 0dab55a12c sync: split common/sync into linux/sync and osx/sync (#23816)
* Create sync.md for Linux

* Create sync.md

* Update sync command documentation link

* Delete pages/common/sync.md

---------

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2026-09-07 19:59:31 +02:00

418 B

sync

Flushes all pending write operations to the appropriate disks. More information: https://www.gnu.org/software/coreutils/manual/html_node/sync-invocation.html.

  • Flush all pending write operations on all disks:

sync

  • Flush all pending write operations on a single file to disk:

sync {{path/to/file}}

  • Flush writes and drop filesystem caches:

sync; echo 3 | sudo tee /proc/sys/vm/drop_caches