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