I have just discovered a script that figures out what you just got wrong at the Linux/BSD/Mac command line and generates the correct command. It is called fuck.
Its home, complete with documentation is https://github.com/nvbn/thefuck