tldr/pages/common/srm.md

21 lines
507 B
Markdown
Raw Normal View History

# srm
> Securely remove files or directories.
> Overwrites the existing data one or multiple times. Drop in replacement for rm.
- Remove a file after a single pass overwriting with random data:
`srm -s {{/path/to/file}}`
- Remove a file after seven passes overwriting it with random data:
`srm -m {{/path/to/file}}`
2016-01-20 11:52:51 +00:00
- Recursively remove a directory and contents overwriting each file with a single pass of random data:
`srm -r -s {{/path/to/folder}}`
- Prompt before every removal:
`srm -i {{\*}}`