Doing an 'stty erase ^H' after login isn't the best solution. If you happen to mistype your username or password when logging in, you can't edit it. If you can, change your terminal program. I use Reflections and you can have the backspace key send either a Delete or Backspace character. Setting it to send a Delete makes everything work great without having to tweak every login script you have.
The answer to your question is this. vi your /etc/profile or your .profile.
stty erase <ctrl-v><ctrl-h>
The first ctrl-v keystoke squence produces the caret, while hitting ctrl-h tells the shell to associate that with an H. Please reply back if you are still having problems.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.