SYNC(1)

πŸ’Ύ SYNC(1) β€” the sync girlies' manual πŸ’Ύ

okay so bestie, welcome to sync, from the General Commands Manual section of your friendly neighbourhood man pages. sit down, grab a lil snack πŸ“, and let's talk about flushing your writes to disk, because honestly? it's giving data integrity. ✨


🌸 NAME 🌸

sync β€” Synchronize cached writes to persistent storage πŸ’…

like. your data is chillin' in the cache. sync is the one that's like "bestie, go to the actual disk, periodt." πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

sync [OPTION]... FILE...

yes she takes OPTIONs, yes she takes FILEs, and yes she will absolutely do the thing. 🫢


πŸŽ€ DESCRIPTION πŸŽ€

Synchronize cached writes to persistent storage.

that's it. that's the whole vibe. everything hanging out in the cache gets pushed out to persistent storage so it's actually, like, real. no cap. πŸ’–


✨ OPTIONS ✨

  • -f, --file-system β€” sync the file systems that contain the files (Linux and Windows only, so don't come for me on other platforms 🫣)
  • -d, --data β€” sync only file data, no unneeded metadata (Linux only πŸ’€)
  • -h, --help β€” Print help (iconic, she's helpful πŸ₯°)
  • -V, --version β€” Print version (for when you need to know exactly which girl you're talking to πŸ‘‘)
  • [files] β€” the files, bestie. hand them over. πŸ“

⭐ VERSION ⭐

v(uutils coreutils) 0.12.0

πŸ”₯ EXAMPLES πŸ”₯

🌈 Flush all pending write operations on all disks:

sync

just sync. no args. main character energy. she flushes everything. πŸ’…


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

sync path/to/file

one file, one flush, one lil moment of peace. 🧚


πŸ’œ Flush writes and drop filesystem caches (Linux only):

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

okay this one is lowkey spicy β€” it flushes the writes and drops the filesystem caches. Linux girlies only. 🌈


πŸ¦‹ Flush disk writes and attempts to clear inactive memory and filesystem caches (macOS only):

sync; sudo purge

macOS besties, this is your version. it tries to clear inactive memory and filesystem caches. cute and thorough. ✨


πŸ“ The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. not me being honest about it πŸ˜­πŸ™ˆ

okay that's the whole page, you ate it up, no crumbs. 🍽️✨

sign-off szn πŸ’– this was uutils coreutils version 0.12.0, dated 2026-09-25 β€” mwah, go flush those writes, bestie. πŸŽ€πŸ«ΆπŸ’…

πŸ“¦ where this page comes from