Skip to content

Instantly share code, notes, and snippets.

@agarzon
Created October 4, 2017 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agarzon/96a711e0198ad57d5c56d39ebe3b7109 to your computer and use it in GitHub Desktop.
Save agarzon/96a711e0198ad57d5c56d39ebe3b7109 to your computer and use it in GitHub Desktop.
Securely erasing all files in folders recursively
#!/bin/bash
#If you want more "passes" change vzun0 for vzun1 or any other number (process will be slower!)
find /mnt/backup -type f -print0 | xargs -0 shred -vzun0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment