Fixing the Backspace key in the UNIX shell
Allot of times when at the command prompt in UNIX, the backspace key doesn’t do what the backspace key should and instead simply put ^H’s on the screen.
There are three ways to fix this:
- Use the delete key instead. Sometimes the delete is mapped to erase the first character to the left.
- Use CTRL+H to backspace. Sometimes simply using ctrl+h will erase the first character to the left.
- Use stty to map ^H to be erase, like this,
# stty erase ^H
You can also fix it put configuring the terminal program you are using. Look for any options mentioning backspace or CTRL+H and turn them on.