Russian Roulette

[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
WARNING! If you are not feeling lucky, don't run this command!
Sample Output
Deleted harddrive

2013-07-02 20:13:51

What Others Think

Could be funny if you just explain what it does. Purely stupid and dangerous
makidoko · 429 weeks and 3 days ago
It looks quite dangerous, there is a chance 1 to 6 that it will tries to remove content of "/"
mfr · 429 weeks and 2 days ago
You'll have to append --no-preserve-root to rm in order to make it work.
strasharo · 428 weeks ago
Good day, I am certain that you have heard at any rate once in your life from a companion, an unbelievable story of winning in an online gambling club, or winning a bet. I figure you didn't actually confide in such bits of hearsay, yet imagine a scenario in which I revealed to you that this happened to me as well, and it drastically completely changed me, when companion prompted me this site - it is genuinely solid and doesn't impede clients who genuine cash win.
JeremyYang · 24 weeks and 3 days ago
I have always loved various experiments with Russian roulette and other probabilities. That's why I decided to try these principles in online casinos. And they really work but only in a quality and reliable casino. Therefore, I would not recommend trying it anywhere. I first review the reviews at . For myself, among the reviews, I chose the Zodiac casino and I think that anyone looking for something like this can browse the reviews and try something for themselves. And also to use the theory of roulette probability it is possible to try many times.
Filiversta · 15 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: