2025-03-14 21:59:59 -06:00
|
|
|
# shred
|
|
|
|
|
|
|
|
|
|
> Overwrite files to securely delete data.
|
|
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/shred-invocation.html>.
|
|
|
|
|
|
|
|
|
|
- Overwrite a file:
|
|
|
|
|
|
|
|
|
|
`shred {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Overwrite a file and show progress on the screen:
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`shred {{[-v|--verbose]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Overwrite a file, leaving zeros instead of random data:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`shred {{[-z|--zero]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Overwrite a file a specific number of times:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`shred {{[-n|--iterations]}} {{25}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Overwrite a file and remove it:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`shred {{[-u|--remove]}} {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Overwrite a file 100 times, add a final overwrite with zeros, remove the file after overwriting it, and show verbose progress on the screen:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`shred {{[-vzu|--verbose --zero --remove]}} {{[-n|--iterations]}} 100 {{path/to/file}}`
|