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
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms