shred

Overwrite files to securely delete data. More information: <https://www.gnu.org/software/coreutils/shred>.

Install

All systems
curl cmd.cat/shred.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/shred shred powered by Commando

Overwrite files to securely delete data. More information: <https://www.gnu.org/software/coreutils/shred>.

  • Overwrite a file:
    shred path/to/file
  • Overwrite a file, leaving zeroes instead of random data:
    shred --zero path/to/file
  • Overwrite a file 25 times:
    shred -n25 path/to/file
  • Overwrite a file and remove it:
    shred --remove path/to/file

© tl;dr; authors and contributors