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.
-
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 {{\*}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.