Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

sync

Some strings on this page have not been translated yet. You can help by translating them on Weblate.
v(uutils coreutils) 0.8.0
sync [OPTION]... FICHIER...

Synchroniser les écritures en cache vers le stockage persistant

Options

--file-system, -f

synchroniser les systèmes de fichiers qui contiennent les fichiers (Linux et Windows uniquement)

--data, -d

synchroniser seulement les données des fichiers, pas les métadonnées inutiles (Linux uniquement)

Examples

The examples have not been translated yet and are shown in English. You can help by translating them on tldr-pages.

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 (Linux only):

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

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

sync; sudo purge

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.