Use BackSpace Key to Erase characters instead of Delete Key

Contributor Icon Contributed by indianboy  
Tag Icon Tagged: 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.

 

3 Comments -


  1. Mark said on April 23, 2010

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

  2. Prosenjit said on June 4, 2010

    Many many thanks for the solution.

  3. Gaurav Sharma said on January 11, 2011

    Thank You, it worked out well for me.

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -