2025-03-14 21:59:59 -06:00
|
|
|
# srm
|
|
|
|
|
|
|
|
|
|
> Securely remove files or directories.
|
|
|
|
|
> Overwrites the existing data one or multiple times. Drop in replacement for rm.
|
|
|
|
|
> More information: <https://srm.sourceforge.net/srm.html>.
|
|
|
|
|
|
|
|
|
|
- Remove a file after a single-pass overwriting with random data:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`srm {{[-s|--simple]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`srm {{[-r|--recursive]}} {{[-s|--simple]}} {{path/to/directory}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Prompt before every removal:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`srm {{[-i|--interactive]}} {{\*}}`
|