SYNC ( 1 ) USER COMMANDSSYNC ( 1 )


NAME

sync - schedule file system updates

SYNOPSIS

sync [ options ]

DESCRIPTION

sync calls sync(2), which causes all information in memory that updates file systems to be scheduled for writing out to all file systems. The writing, although scheduled, is not necessarily complete upon return from sync.

Since sync(2) has no failure indication, sync only fails for option/operand syntax errors, or when sync(2) does not return, in which case sync also does not return.

At minimum sync should be called before halting the system. Most systems provide graceful shutdown procedures that include sync -- use them if possible.

EXIT STATUS

0
sync(2) returned.
>0

Option/operand syntax error.

SEE ALSO

sync(2), shutdown(8)

IMPLEMENTATION

version

sync (AT&T Research) 2006-10-04
author

Glenn Fowler <glenn.s.fowler@gmail.com>
author

David Korn <dgkorn@gmail.com>
copyright

Copyright © 1992-2012 AT&T Intellectual Property
license

http://www.eclipse.org/org/documents/epl-v10.html