sync
system administrationLinux/Unix
The sync command is one of the most frequently used commands in Linux/Unix-like operating systems. sync Synchronize cached writes to persistent storage
Quick Reference
Command Name:
sync
Category:
system administration
Platform:
Linux/Unix
Basic Usage:
sync [options] [arguments]
Common Use Cases
Syntax
sync [options] [file...]
Options
Option | Description |
---|---|
-d, --data |
Sync only file data, no unneeded metadata |
-f, --file-system |
Sync the file systems that contain the files |
--help |
Display help information and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the sync
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
sync