2014-02-10 15:44:02 -08:00
|
|
|
# srm
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Securely remove files or directories.
|
2014-02-10 15:44:02 -08:00
|
|
|
> Overwrites the existing data one or multiple. Drop in replacement for rm.
|
|
|
|
|
2016-01-16 15:12:05 +01:00
|
|
|
- Remove a file after overwriting (single pass, 7 pass, 35 pass):
|
2014-02-10 15:44:02 -08:00
|
|
|
|
|
|
|
`srm -s {{/path/to/file}}`
|
|
|
|
`srm -m {{/path/to/file}}`
|
|
|
|
`srm {{/path/to/file}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Scurely remove recursively a directory and all it's subdirectories:
|
2014-02-10 15:44:02 -08:00
|
|
|
|
|
|
|
`srm -r {{/path/to/folder}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- Prompt before every removal:
|
2014-02-10 15:44:02 -08:00
|
|
|
|
2015-10-28 14:03:06 +05:30
|
|
|
`srm -i {{\*}}`
|