1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 18:15:24 +02:00
tldr/pages/common/srm.md

22 lines
639 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.
2024-10-12 10:02:00 +02:00
> More information: <https://srm.sourceforge.net/srm.html>.
2016-01-20 09:59:42 -08:00
- Remove a file after a single-pass overwriting with random data:
`srm {{[-s|--simple]}} {{path/to/file}}`
2016-01-20 09:59:42 -08:00
- Remove a file after seven passes of overwriting with random data:
`srm -m {{path/to/file}}`
2016-01-20 09:59:42 -08:00
- Recursively remove a directory and its contents overwriting each file with a single-pass of random data:
`srm {{[-r|--recursive]}} {{[-s|--simple]}} {{path/to/directory}}`
- Prompt before every removal:
`srm {{[-i|--interactive]}} {{\*}}`