"Russian Roulette" Bash Command in Terminal?
Came across that Unix bash command that plays Russian Roulette with your system. There are several variants, but the one I happened upon is as follows: [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo \"You live\"
I know very little about Unix (can basically move around among folders in the Terminal, delete files, simple stuff like that), so I'm wondering what, if anything, this does to one's system if you run it in 10.4's Terminal and "lose." Apparently it really does some damage serious if you're running Linux, but since OS X is very different from both Unix and Linux, I'm quite curious to know what kind of damage it would do. Anyone know?
I know very little about Unix (can basically move around among folders in the Terminal, delete files, simple stuff like that), so I'm wondering what, if anything, this does to one's system if you run it in 10.4's Terminal and "lose." Apparently it really does some damage serious if you're running Linux, but since OS X is very different from both Unix and Linux, I'm quite curious to know what kind of damage it would do. Anyone know?