MAC OS X, Linux, Windows and other IT Tips and Tricks

27 May 13 Deleting files securely

To erase files recursively in a specific directory with best security and make it almost impossible to recover any of the files in that directory, run the following command:
cd /dir/where/to/delete/files/
find . -type f | while read file ; do shred --verbose --remove --zero -n 10 $file ; done

I say almost because the author didn’t seem to have ruled out the possibility of recovering the files, but my guess is that only very specialized labs and governments would be able to afford attempting this.

Important Note: Be careful with this command. You really need to NOT FORGET to do the command
cd /dir/where/to/delete/files/

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: