Commit | Line | Data |
---|---|---|
7b089094 WJ |
1 | .\" Copyright (c) 1980, 1991 Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" %sccs.include.redist.roff% | |
5 | .\" | |
6 | .\" %W% (Berkeley) %G% | |
7 | .\" | |
8 | .Dd %Q% | |
9 | .Dt SYNC 8 | |
10 | .Os BSD 4 | |
11 | .Sh NAME | |
12 | .Nm sync | |
13 | .Nd synchronize internal filesystem information with that on the disk | |
14 | .Sh SYNOPSIS | |
15 | .Nm sync | |
16 | .Sh DESCRIPTION | |
17 | .Nm Sync | |
18 | can be called to insure that all disk writes have been completed before the | |
19 | processor is halted in a way not suitably done by | |
20 | .Xr reboot 8 | |
21 | or | |
22 | .Xr halt 8 . | |
23 | Generally, it is preferable to use | |
24 | .Xr reboot | |
25 | or | |
26 | .Xr halt | |
27 | to shut down the system, | |
28 | as they may perform additional actions | |
29 | such as resynchronizing the hardware clock | |
30 | and flushing internal caches before performing a final | |
31 | .Nm sync . | |
32 | .Pp | |
33 | .Nm Sync | |
34 | utilizes the | |
35 | .Xr sync 2 | |
36 | function call. | |
37 | .Sh SEE ALSO | |
38 | .Xr sync 2 , | |
39 | .Xr fsync 2 , | |
40 | .Xr halt 8 , | |
41 | .Xr reboot 8 , | |
42 | .Xr update 8 | |
43 | .Sh HISTORY | |
44 | A | |
45 | .Nm sync | |
46 | command appeared in | |
47 | .At v6 . |