So you just logged into your unix system and you started typing and then oops you typed a wrong letter I mean charater.
What are those funky charaters at the end, yup they are me trying to use the back space, but I just end up getting further away from the charaters that I am tryign to delete.
So now for the majick solution.
root@server# stty erase ^?
so the command stty sets options for the terminal session. Then you are telling it what key you want to use to erase with. Which is what the ^? is the erase key being used, so type stty erase space key then back space key then Enter, and you should be back to sanity once again.