Open Metric
Science, Fiction and Me

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


Most technical TILs will be updated at datumorphism.leima.is/til

By OctoMiao

Last updated