1*60723Sbostic.\" Copyright (c) 1980, 1991, 1993 2*60723Sbostic.\" The Regents of the University of California. All rights reserved. 318932Smckusick.\" 454334Scael.\" %sccs.include.redist.roff% 518932Smckusick.\" 6*60723Sbostic.\" @(#)sync.8 8.1 (Berkeley) 05/31/93 747462Scael.\" 847462Scael.Dd 947462Scael.Dt SYNC 8 1047462Scael.Os BSD 4 1147462Scael.Sh NAME 1247462Scael.Nm sync 1354334Scael.Nd force completion of pending disk writes (flush cache) 1447462Scael.Sh SYNOPSIS 1554334Scael.Nm sync 1647462Scael.Sh DESCRIPTION 1754334Scael.Nm Sync 1828856Skarelscan be called to insure that all disk writes have been completed before the 1918932Smckusickprocessor is halted in a way not suitably done by 2047462Scael.Xr reboot 8 2118932Smckusickor 2247462Scael.Xr halt 8 . 2328856SkarelsGenerally, it is preferable to use 2447462Scael.Xr reboot 2528856Skarelsor 2647462Scael.Xr halt 2728856Skarelsto shut down the system, 2828856Skarelsas they may perform additional actions 2928856Skarelssuch as resynchronizing the hardware clock 3028856Skarelsand flushing internal caches before performing a final 3154334Scael.Nm sync . 3247462Scael.Pp 3354334Scael.Nm Sync 3447462Scaelutilizes the 3547462Scael.Xr sync 2 3647462Scaelfunction call. 3747462Scael.Sh SEE ALSO 3847462Scael.Xr sync 2 , 3947462Scael.Xr fsync 2 , 4047462Scael.Xr halt 8 , 4147462Scael.Xr reboot 8 , 4247462Scael.Xr update 8 4347462Scael.Sh HISTORY 4447462ScaelA 4554334Scael.Nm sync 4654334Scaelcommand appeared in 4754334Scael.At v6 . 48