1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 00:17:56 +01:00
tldr/pages/common/srm.md
Marco Bonelli ac4094e0ad Refactor: improve consistency of the term "directory".
This commit changes the term "folder" to "directory" in every
instance where the first is used in an example description, but the
second is used in the example code, and vice versa.
2019-02-08 19:43:24 +00:00

20 lines
514 B
Markdown

# srm
> Securely remove files or directories.
> Overwrites the existing data one or multiple times. Drop in replacement for rm.
- Remove a file after a single-pass overwriting with random data:
`srm -s {{/path/to/file}}`
- 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:
`srm -r -s {{/path/to/directory}}`
- Prompt before every removal:
`srm -i {{\*}}`