Name

sync — stdin  stdout  - file  -- opt  --help  --version

Synopsis

sync

The sync command flushes all disk caches to disk. The kernel usually buffers reads, writes, inode changes, and other disk-related activity in memory. sync writes the changes to disk. Normally, you don’t need to run this command, but if (say) you’re about to do something risky that might crash your machine, running sync immediately beforehand can’t hurt.

Get Linux Pocket Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.