Use BackSpace Key to Erase characters instead of Delete Key

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.

  • Mark

    You may need to add quotes arround the “^H” in the .profile for the command to process correctly

  • Prosenjit

    Many many thanks for the solution.

  • Gaurav Sharma

    Thank You, it worked out well for me.