Commands in Unix when things go wrong
Terminals and keyboards has no uniform behavioral pattern. There are some commands to wriggle out of some common traps. You must know which keys you need to press when things don’t quite work as expected.
1. Backspacing doesn’t work: Consider you misspelled command stty as ssty and when you press backspace to erase the command, an unexpected symbol(^?) are printed:
Backspacing is not working here, that’s why ^? is printed whenever we pressed backspace. To get rid of this unexpected behavior, we can use any of the following keys:
[Ctrl-c] OR [Delete]
2. Killing a line: If a command line contains many mistakes, a person will prefer to kill or erase the line instead of executing it. For this we have to press:
Above command kills everything in a line and returns the cursor to the beginning of the line.