BSD 4_4_Lite2 development
[unix-history] / usr / share / man / cat8 / sync.0
SYNC(8) BSD System Manager's Manual SYNC(8)
N\bNA\bAM\bME\bE
s\bsy\byn\bnc\bc - force completion of pending disk writes (flush cache)
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
s\bsy\byn\bnc\bc
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
S\bSy\byn\bnc\bc can be called to insure that all disk writes have been completed be-
fore the processor is halted in a way not suitably done by reboot(8) or
halt(8). Generally, it is preferable to use reboot or halt to shut down
the system, as they may perform additional actions such as resynchroniz-
ing the hardware clock and flushing internal caches before performing a
final s\bsy\byn\bnc\bc.
S\bSy\byn\bnc\bc utilizes the sync(2) function call.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
sync(2), fsync(2), halt(8), reboot(8), update(8)
H\bHI\bIS\bST\bTO\bOR\bRY\bY
A s\bsy\byn\bnc\bc command appeared in Version 6 AT&T UNIX.
4th Berkeley Distribution May 31, 1993 1