srm
Securely remove files or directories. Overwrites the existing data one or multiple times. Drop in replacement for rm. More information: <http://srm.sourceforge.net/srm.html>.
Install
- All systems
-
curl cmd.cat/srm.sh
- Debian
-
apt-get install secure-delete
- Ubuntu
-
apt-get install secure-delete
- Alpine
-
apk add secure-delete
- Kali Linux
-
apt-get install secure-delete
- Fedora
-
dnf install srm
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install secure-delete
- Raspbian
-
apt-get install secure-delete
- Dockerfile
- dockerfile.run/srm
- Docker
-
docker run cmd.cat/srm srm
powered by Commando
Securely remove files or directories. Overwrites the existing data one or multiple times. Drop in replacement for rm. More information: <http://srm.sourceforge.net/srm.html>.
-
Remove a file after a single-pass overwriting with random data:
srm -s path/to/file
-
Remove a file after seven passes of overwriting with random data:
srm -m path/to/file
-
Recursively remove a directory and its contents overwriting each file with a single-pass of random data:
srm -r -s path/to/directory
-
Prompt before every removal:
srm -i \*
© tl;dr; authors and contributors