Dark Hypernova
Science and Fiction

Today I Learned

Command Line Russian Roulette

Found a very funny comic on commicstrip.

Commic from commicstrip.

nixcraft has this article that explains these commands.

[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*

or

[ $[ $RANDOM % 6 ] == 0 ] && rm -rf --no-preserve-root / || echo *Click*

or a safer version

[ $[ $RANDOM % 6 ] == 0 ] && echo '*Oh nooo*' || echo '*Click*'

On reddit someone saw an ad from infinum about this.

on reddit.

A Random #TIL# for You

By OctoMiao

Last updated