sync.1 (833B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2024-07-28
- .Dt SYNC 1
- .Os
- .Sh NAME
- .Nm sync
- .Nd Schedule file system updates
- .Sh SYNOPSIS
- .Nm
- .Op Fl df
- .Op Ar file...
- .Sh DESCRIPTION
- Schedule cached writes to filesystems.
- If any
- .Ar file
- is specified, only those files are scheduled,
- otherwise all filesystems are synchronized.
- .Sh OPTIONS
- .Bl -tag -width _d
- .It Fl d
- Sync only file data, not metadata.
- .It Fl f
- Sync entire filesystem. (Only available on systems with
- .Xr syncfs 2 )
- .El
- .Sh EXIT STATUS
- .Ex -std
- .Sh SEE ALSO
- .Xr fdatasync 2 ,
- .Xr fsync 2 ,
- .Xr sync 2 ,
- .Xr syncfs 2
- .Sh HISTORY
- A
- .Nm
- utility appeared in
- .At v4 .
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me