Russian Roulette is a fatal game of chance in which a player places a single round in a revolver, spins the cylinder, places the muzzle against their head, and pulls the trigger.
Command line Russian Roulette for Linux and Unix system
Of course, you can play such game on your Linux or Unix server too (don’t run the following commands on your PC/MacOS/Unix/Linux system as it will delete everything):
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
OR
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf --no-preserve-root / || echo *Click*
Above shell kung-fu deletes all your files one out of six times. Hence, you must not run it in production. Here is a safe version:
[ $[ $RANDOM % 6 ] == 0 ] && echo '*Oh nooo*' || echo '*Click*'
Command Line Russian Roulette Comic
Of course, there is a comic too:

Or
And someone tried to hire a couple of devs/ops/sysadmin using the following ad:
Hmm … #unix #linux #osx #bashshell #gnu pic.twitter.com/hEXnsTQrH8
— nixCraft (@nixcraft) May 4, 2016
Well doesn’t this depend on your current working directory? Seems like it should cd to / ?
should be: [ $(( $RANDOM % 6 )) == 0 ] && …
just fyi ;)
Billboard used assignment instead of equality check. They do need to make a hire.
This is funny. I laughed so hard.
Had to try it on quick vm just to see how many spins I could last. Just 2
Have faith in Cloud and thou shalt live again.
Hm are we not allowed to use url in comment?
If yes some error message would be good.
About this post this was the first thing what came into my mind:
devnull-as-a-service.com/one-less-to-go.sh
This was the first thing what came into my mind:
https://devnull-as-a-service.com/one-less-to-go.sh