1 .\" Reboot/halt and Linux information extracted from Rick Faith's original
2 .\" sync(8) manpage, dating back to the Linux 0.99 days. The Linux-specific
3 .\" information is attributed to Linus Torvalds
4 .\" Copyright 1992, 1993 Rickard E. Faith (faith@cs.unc.edu)
5 .\" May be distributed under the GNU General Public License
6 .TH SYNC 8 1998-11-01 "GNU" "Linux Programmer's Manual"
8 sync \- synchronize data on disk with memory
10 .B "sync [\-\-help] [\-\-version]"
13 writes any data buffered in memory out to disk.
14 This can include (but is not limited to) modified superblocks,
15 modified inodes, and delayed reads and writes.
16 This must be implemented by the kernel;
19 program does nothing but exercise the
23 The kernel keeps data in memory to avoid doing (relatively slow) disk
25 This improves performance, but if the computer
26 crashes, data may be lost or the file system corrupted as a result.
28 ensures that everything in memory is written to disk.
31 should be called before the processor is halted in an unusual manner
32 (e.g., before causing a kernel panic when debugging new kernel code).
33 In general, the processor should be halted using the
39 commands, which will attempt to put the system in a quiescent state
42 (Various implementations of these commands exist; consult your
43 documentation; on some systems one should not call
51 Print a usage message on standard output and exit successfully.
54 Print version information on standard output, then exit successfully.
57 Terminate option list.
59 The variables \fBLANG\fP, \fBLC_ALL\fP, \fBLC_CTYPE\fP,
60 and \fBLC_MESSAGES\fP have the usual meaning.
66 is only guaranteed to schedule the dirty blocks for writing; it can
67 actually take a short time before all the blocks are finally written.
72 commands take this into account by sleeping for a few seconds after
78 as found in the file\%utils-4.0 package;
79 other versions may differ slightly.