src/world/bin/sync/man/sync.1

42 lines
781 B
Groff

.Dd 2020-10-06
.Dt SYNC 1
.Os HitchHiker linux
.Sh NAME
.Nm sync
.Nd force completion of pending disk writes (flush cache)
.Sh SYNOPSIS
.Nm
.Sh DESCRIPTION
The
.Nm
utility can be called to ensure that all disk writes have been completed
before the processor is halted in a way not suitably done by
.Xr reboot 8
or
.Xr halt 8 .
Generally, it is preferable to use
.Xr reboot 8
or
.Xr halt 8
to shut down the system, as they may perform additional actions such as
resynchronizing the hardware clock and flushing internal caches before
performing a final
.Nm sync .
.Pp
.Nm
utilizes the
.Xr sync 2
function.
.Sh AUTHOR
Written by the JeanG3nie for HitchHiker Linux.
.Sh SEE ALSO
.Xr fsync 2 ,
.Xr sync 2 ,
.Xr halt 8 ,
.Xr reboot 8
.Sh HISTORY
A
.Nm
command first appeared in
.At v4 .