2005-05-02 15:01:42 +02:00
|
|
|
.TH SYNC 8
|
|
|
|
.SH NAME
|
|
|
|
sync \- flush the cache to disk
|
|
|
|
.SH SYNOPSIS
|
|
|
|
\fBsync\fR
|
|
|
|
.br
|
|
|
|
.de FL
|
|
|
|
.TP
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
\\$2
|
|
|
|
..
|
|
|
|
.de EX
|
|
|
|
.TP 20
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
# \\$2
|
|
|
|
..
|
|
|
|
.SH EXAMPLES
|
2012-03-31 23:44:29 +02:00
|
|
|
.TP 20
|
|
|
|
.B sync
|
|
|
|
# Write out all modified cache blocks
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
2005-08-22 14:56:02 +02:00
|
|
|
\s-1MINIX 3\s-1
|
2005-05-02 15:01:42 +02:00
|
|
|
maintains a cache of recently used disk blocks.
|
|
|
|
The
|
|
|
|
.I sync
|
|
|
|
command writes any modified cache blocks back to the disk.
|
|
|
|
This is essential before stopping the system, and should be done before
|
|
|
|
running any
|
|
|
|
.I a.out
|
|
|
|
program that might crash.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR sync (2),
|
|
|
|
.BR update (8),
|
|
|
|
.BR shutdown (8).
|