May
07
|
Securely delete a file called /tmp/login.txt:
shred -u /tmp/login.txt
You can add a final overwrite with zeros to hide shredding:
shred -u -x /tmp/login.txt
Where,
- -u : Remove file after overwriting
- -x : Add a zero to hide shredding
- -n NUM : Overwrite NUM times instead of the default 25
Shred a multiple files
Let us say you have 100 subdirectories and just wanted to get rid of all files:
find -t f . -exec shred -u '{}' \;
Run shred on entire partition
shred -n 30 -vz /dev/hdb2
Recent Comments