1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/shred.md

21 lines
391 B
Markdown
Raw Normal View History

2016-02-05 11:22:47 -05:00
# shred
2016-02-05 12:03:46 -05:00
> Overwrite files to securely delete data.
> More information: <https://www.gnu.org/software/coreutils/shred>.
2016-02-05 11:22:47 -05:00
- Overwrite a file:
2022-12-04 10:12:49 +01:00
`shred {{path/to/file}}`
2016-02-05 11:22:47 -05:00
- Overwrite a file, leaving zeroes instead of random data:
2022-12-04 10:12:49 +01:00
`shred --zero {{path/to/file}}`
2016-02-05 11:22:47 -05:00
- Overwrite a file 25 times:
2022-12-04 10:12:49 +01:00
`shred -n25 {{path/to/file}}`
2016-02-05 11:22:47 -05:00
- Overwrite a file and remove it:
2022-12-04 10:12:49 +01:00
`shred --remove {{path/to/file}}`