AptLynx

Command-line tool

scrub

brew/scrub

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Writes patterns on magnetic media to thwart data recovery

At a glance

Type
Command-line tool
Install on
macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

macOS

brew install scrub

Linux

brew install scrub

Securely overwrite a file using the default overwrite pattern

scrub path/to/file

Securely overwrite multiple files

scrub path/to/file1 path/to/file2 ...

Securely overwrite a block device or partition

sudo scrub /dev/sdX

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents