sync

Flushes all pending write operations to the appropriate disks. More information: <https://www.gnu.org/software/coreutils/sync>.

Install

All systems
curl cmd.cat/sync.sh
Debian Debian
apt-get install coreutils
Ubuntu
apt-get install coreutils
Alpine
apk add coreutils
Arch Arch Linux
pacman -S coreutils
image/svg+xml Kali Linux
apt-get install coreutils
CentOS
yum install coreutils
Fedora
dnf install coreutils
Windows (WSL2)
sudo apt-get update sudo apt-get install coreutils
OS X
brew install coreutils
Raspbian
apt-get install coreutils
Docker
docker run cmd.cat/sync sync powered by Commando

Flushes all pending write operations to the appropriate disks. More information: <https://www.gnu.org/software/coreutils/sync>.

  • Flush all pending write operations on all disks:
    sync
  • Flush all pending write operations on a single file to disk:
    sync path/to/file

© tl;dr; authors and contributors