Evil things to do to a .bashrc

The .bashrc is an important file in the linux BASH environments found on most linux computers.

However, when left unattended, it is vulnerable to a number of obscene abuses, which I will list here (NB this list will be growing over time, so check back :P )

  1. Evil Aliases
    • alias ls='echo "Segmentation Fault"'
    • alias cd='exit'
    • alias sort='sort -R' – This kept a colleague occupied for hours!
      • alias ls='ls | sort -R | sed 1,2d | sort' - a fabulous variation by Graham B.!
  2. Malicious Functions
    • fork-bomb intruder: cd(){ cd|cd &}; WARNING - this will lose you friends

Suggestions? Tweet to @LargeCardinal