Russian Roulette in the Bash shell

9 01 2009

If you are feeling REALLY brave or you are just VERY VERY INSANE you might want to try a quick game of Bash shell Russian Roulette.

Just open an su Bash prompt and run the following. You get a 1 in 6 chance of removing all the files on your system.

[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live"

Don’t blame if if you are not lucky :)








Follow

Get every new post delivered to your Inbox.