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.

3 Responses to “Use BackSpace Key to Erase characters instead of Delete Key”

  1. April 23, 2010 at 6:24 pm, Mark said:

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


  2. June 04, 2010 at 4:47 pm, Prosenjit said:

    Many many thanks for the solution.


  3. January 11, 2011 at 6:38 pm, Gaurav Sharma said:

    Thank You, it worked out well for me.


Leave a Reply