Last active
March 14, 2025 11:02
-
-
Save mlsmrc/8eb4a6f45c616a7d405f0b979d507599 to your computer and use it in GitHub Desktop.
shreding an sdX linux device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[ $# -ne 1 ] && { echo "missing sdX device as parameter"; exit 1; } | |
cat /dev/null > shred.log | |
sudo shred -v -n3 -z /dev/${1} &>> shred_${1}.log & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment