shred
shred
# To securely delete the file `file.txt`:
shred file.txt
# To securely delete the file `file.txt` and overwrite it 3 times:
shred -n 3 file.txt
# To securely delete the file `file.txt` and force the overwrite, even if the file is open:
shred -f file.txt
# To securely delete the file `file.txt` and zero out the file data after overwriting it:
shred -z file.txthelp
shred [options] files
Securely delete files by overwriting them multiple times.
Options:
-n, --iterations=N overwrite each file N times (default 3)
-f, --force force overwrite even if the file is open
-z, --zero zero out the file data after overwriting it
-u, --unlink unlink the file after overwriting it
-v, --verbose print progress information
-h, --help show this help message
For more information, see the shred man page.
breakdown
Last updated