Use BackSpace Key to Erase characters instead of Delete Key

Posted October 7, 2003 by indianboy in Solaris system administration

Normally when you access Solaris in text mode, one must use the Delete Key to erase a character. Follow these directions if you wish to use the BackSpace key instead.

Please enter the following at the prompt:

stty erase ^H

But once you log out of the system and login again, the changes are lost. Here is how to retain these settings even after you logout.

If you are using sh or ksh, please add the above mentioned line to the .profile file.

If you are using csh, please add the line to .login file.

If you are using bash shell, please add the file to .bash_profile file.

The Conversation

Follow the reactions below and share your own thoughts.