srm
all
Securely remove files or directories. Overwrites the existing data one or multiple times. Drop in replacement for rm.
More info →Options (3)
-s, --simplebooleanRemove a file after a single-pass overwriting with random data
Example:
srm {{[-s|--simple]}} {{path/to/file}}-r, --recursivebooleanRecursively remove a directory and its contents overwriting each file with a single-pass of random data
Example:
srm {{[-r|--recursive]}} {{[-s|--simple]}} {{path/to/directory}}-i, --interactivebooleanPrompt before every removal
Example:
srm {{[-i|--interactive]}} {{\*}}Examples (4)
Remove a file after a single-pass overwriting with random data
srm [-s|--simple] path/to/fileRemove a file after seven passes of overwriting with random data
srm -m path/to/fileRecursively remove a directory and its contents overwriting each file with a single-pass of random data
srm [-r|--recursive] [-s|--simple] path/to/directoryPrompt before every removal
srm [-i|--interactive] \*made by @shridhargupta | data from tldr-pages