1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 09:42:07 +02:00
tldr/pages/common/shred.md
K.B.Dharun Krishna 898f711019
pages/*: update GNU coreutils links, sync translation pages (#15543)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-01-18 18:45:33 +05:30

732 B

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:

shred --verbose {{path/to/file}}

  • Overwrite a file, leaving [z]eros instead of random data:

shred --zero {{path/to/file}}

  • Overwrite a file a specific [n]umber of times:

shred --iterations {{25}} {{path/to/file}}

  • Overwrite a file and remove it:

shred --remove {{path/to/file}}

  • 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}}