tldr/pages/common/sync.md

13 lines
322 B
Markdown
Raw Normal View History

2017-09-28 10:30:26 +01:00
# sync
2017-09-28 22:13:38 +01:00
> Flushes all pending write operations to the appropriate disks.
2021-03-30 08:08:19 +01:00
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/sync-invocation.html>.
2017-09-28 10:30:26 +01:00
2017-09-28 22:13:38 +01:00
- Flush all pending write operations on all disks:
2017-09-28 10:30:26 +01:00
`sync`
2017-09-28 22:13:38 +01:00
- Flush all pending write operations on a single file to disk:
2017-09-28 10:30:26 +01:00
2017-09-28 22:13:38 +01:00
`sync {{path/to/file}}`