Sodamhan.com

TL;DR

shred

Overwrite files to securely delete data. More information: https://www.gnu.org/software/coreutils/shred.

  • 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 zeros instead of random data:

shred --zero path/to/file

  • Overwrite a file a specific number 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 zeros, remove the file after overwriting it and show verbose progress on the screen:

shred -vzun 100 path/to/file

This document was created using the contents of the tldr project.