scrub

writes patterns on magnetic media to thwart data recovery

Install

All systems
curl cmd.cat/scrub.sh
Debian Debian
apt-get install scrub
Ubuntu
apt-get install scrub
image/svg+xml Kali Linux
apt-get install scrub
CentOS
yum install scrub
Fedora
dnf install scrub
Windows (WSL2)
sudo apt-get update sudo apt-get install scrub
OS X
brew install scrub
Raspbian
apt-get install scrub

scrub

writes patterns on magnetic media to thwart data recovery

scrub iteratively writes patterns on files or disk devices to make retrieving the data more difficult. scrub can write patterns direct to disk, destroying any file system (preferred method), or it can write patterns on files, or on file system free space. scrub writes NNSA NAP-14.x, DoD 5220.22-M, BSI, 35-pass gutmann, or one of several other selectable pattern sequences. scrub operates at the POSIX system call level, thus it is portable to a wide variety of hardware platforms. However, this means it cannot do certain things like manipulate spare blocks on disks, etc..