2016-02-05 11:22:47 -05:00
|
|
|
# shred
|
|
|
|
|
2016-02-05 12:03:46 -05:00
|
|
|
> Overwrite files to securely delete data.
|
2021-04-01 17:54:26 +02:00
|
|
|
> 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
|
|
|
|
2023-12-31 08:32:37 +01:00
|
|
|
- Overwrite a file and show progress on the screen:
|
|
|
|
|
|
|
|
`shred --verbose {{path/to/file}}`
|
|
|
|
|
|
|
|
- Overwrite a file, leaving [z]eros instead of random data:
|
2016-02-05 11:22:47 -05:00
|
|
|
|
2022-12-04 10:12:49 +01:00
|
|
|
`shred --zero {{path/to/file}}`
|
2016-02-05 11:22:47 -05:00
|
|
|
|
2023-12-31 08:32:37 +01:00
|
|
|
- Overwrite a file a specific [n]umber of times:
|
2016-02-05 11:22:47 -05:00
|
|
|
|
2023-12-31 08:32:37 +01:00
|
|
|
`shred --iterations {{25}} {{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}}`
|
2023-12-31 08:32:37 +01:00
|
|
|
|
|
|
|
- Overwrite a file 100 times, add a final overwrite with [z]eros, remove the file after overwriting it and show [v]erbose progress on the screen:
|
|
|
|
|
|
|
|
`shred -vzun 100 {{path/to/file}}`
|