shred – delete a file securely, first overwriting it to hide its contents


Overwrite the specified FILE(s) repeatedly, in order to make it harder for even very expensive hardware probing to recover the data.

Mandatory arguments to long options are mandatory for short options too.

change permissions to allow writing if necessary
Overwrite N times instead of the default (25)
shred this many bytes (suffixes like K, M, G accepted)
truncate and remove file after overwriting
show progress
do not round file sizes up to the next full block
add a final overwrite with zeros to hide shredding
shred standard output
display this help and exit
output version information and exit

Use shred to overwrite a file to hide its contents, and optionally delete it.

shred is a program that will overwrite your files in a way that makes them very difficult to recover by a third party.