sync

Synchronize data on disk with memory

Syntax
      sync

Writes any data buffered in memory out to disk. This can include (but is not limited to) modified superblocks, modified inodes, and delayed reads and writes.
This must be implemented by the kernel; The `sync' program does nothing but exercise the `sync' system call. The kernel keeps data in memory to avoid doing (relatively slow) disk reads and writes. This improves performance, but if the computer crashes, data may be lost or the filesystem corrupted as a result. `sync' ensures everything in memory is written to disk.

Any arguments are ignored, except for a lone `--help' or `--version'

"The way to a mans heart is through his stomach" - Fanny Fern (writer)

Related:

mount - Mount a file system


© Copyright SS64.com 1999-2014
Some rights reserved