2016-02-05 11:22:47 -05:00
|
|
|
# shred
|
|
|
|
|
2016-02-05 12:03:46 -05:00
|
|
|
> Overwrite files to securely delete data.
|
2025-01-18 18:45:33 +05:30
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/shred-invocation.html>.
|
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:
|
|
|
|
|
2025-03-17 23:17:57 +02:00
|
|
|
`shred {{[-v|--verbose]}} {{path/to/file}}`
|
2023-12-31 08:32:37 +01:00
|
|
|
|
2025-03-17 23:17:57 +02:00
|
|
|
- Overwrite a file, leaving zeros instead of random data:
|
2016-02-05 11:22:47 -05:00
|
|
|
|
2025-03-17 23:17:57 +02:00
|
|
|
`shred {{[-z|--zero]}} {{path/to/file}}`
|
2016-02-05 11:22:47 -05:00
|
|
|
|
2025-03-17 23:17:57 +02:00
|
|
|
- Overwrite a file a specific number of times:
|
2016-02-05 11:22:47 -05:00
|
|
|
|
2025-03-17 23:17:57 +02:00
|
|
|
`shred {{[-n|--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
|
|
|
|
2025-03-17 23:17:57 +02: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:
|
2023-12-31 08:32:37 +01:00
|
|
|
|
2025-03-17 23:17:57 +02:00
|
|
|
`shred {{[-vzun|--verbose --zero -u --iterations]}} 100 {{path/to/file}}`
|