Commit | Line | Data |
---|---|---|
a15750af KM |
1 | .\" Copyright (c) 1980 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
b4cfb2d9 | 5 | .\" @(#)sync.8 6.2 (Berkeley) %G% |
a15750af | 6 | .\" |
d7550e53 | 7 | .TH SYNC 8 "" |
a15750af KM |
8 | .UC 4 |
9 | .SH NAME | |
10 | sync \- update the super block | |
11 | .SH SYNOPSIS | |
a1d5ddf3 | 12 | .B /etc/sync |
a15750af KM |
13 | .SH DESCRIPTION |
14 | .I Sync | |
15 | executes the | |
16 | .I sync | |
17 | system primitive. | |
18 | .I Sync | |
b4cfb2d9 | 19 | can be called to insure that all disk writes have been completed before the |
a15750af KM |
20 | processor is halted in a way not suitably done by |
21 | .IR reboot (8) | |
22 | or | |
23 | .IR halt (8). | |
b4cfb2d9 MK |
24 | Generally, it is preferable to use |
25 | .I reboot | |
26 | or | |
27 | .I halt | |
28 | to shut down the system, | |
29 | as they may perform additional actions | |
30 | such as resynchronizing the hardware clock | |
31 | and flushing internal caches before performing a final | |
32 | .IR sync . | |
a15750af KM |
33 | .PP |
34 | See | |
35 | .IR sync (2) | |
36 | for details on the system primitive. | |
37 | .SH "SEE ALSO" | |
a1d5ddf3 | 38 | sync(2), fsync(2), halt(8), reboot(8), update(8) |