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