logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git

sync.1 (833B)


  1. .\" utils-std: Collection of commonly available Unix tools
  2. .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2024-07-28
  5. .Dt SYNC 1
  6. .Os
  7. .Sh NAME
  8. .Nm sync
  9. .Nd Schedule file system updates
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl df
  13. .Op Ar file...
  14. .Sh DESCRIPTION
  15. Schedule cached writes to filesystems.
  16. If any
  17. .Ar file
  18. is specified, only those files are scheduled,
  19. otherwise all filesystems are synchronized.
  20. .Sh OPTIONS
  21. .Bl -tag -width _d
  22. .It Fl d
  23. Sync only file data, not metadata.
  24. .It Fl f
  25. Sync entire filesystem. (Only available on systems with
  26. .Xr syncfs 2 )
  27. .El
  28. .Sh EXIT STATUS
  29. .Ex -std
  30. .Sh SEE ALSO
  31. .Xr fdatasync 2 ,
  32. .Xr fsync 2 ,
  33. .Xr sync 2 ,
  34. .Xr syncfs 2
  35. .Sh HISTORY
  36. A
  37. .Nm
  38. utility appeared in
  39. .At v4 .
  40. .Sh AUTHORS
  41. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me