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