Play russian roulette in your command line
Found a very funny comic on commicstrip.
nixcraft has this article that explains these commands.
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf --no-preserve-root / || echo *Click*
or a safer version
[ $[ $RANDOM % 6 ] == 0 ] && echo '*Oh nooo*' || echo '*Click*'
Lei Ma (2017). 'Command Line Russian Roulette', Datumorphism, 05 April. Available at: https://datumorphism.leima.is/til/programming/command-line-russian-roulette/.
Table of Contents