Linux "sync" Command Line Options and Examples
commit filesystem caches to disk

Synchronize cached writes to persistent storage If one or more files are specified, sync only them, or their containing file systems.


Usage:

sync [OPTION] [FILE]...




Command Line Options:

-d
sync only file data, no unneeded metadata
sync -d ...
-f
sync the file systems that contain the files
sync -f ...
--help
display this help and exit
sync --help ...
--version
output version information and exitBUGSPersistence guarantees vary per system. See the system calls below for more details.AUTHORWritten by Jim Meyering and Giuseppe Scrivano.REPORTING BUGSGNU coreutils online help: <http://www.gnu.org/software/coreutils/>Report sync translation bugs to <http://translationproject.org/team/>COPYRIGHTCopyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later<http://gnu.org/licenses/gpl.html>.This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent per‐mitted by law.
sync --version ...