Monday, August 20, 2018

How to solve backspace delete problem on korn and C SHELL

How to solve backspace delete problem on korn and cshell(.cshrc) ??





Answer:

While executing linux command sometime UNIX/Linux admin need to use backspace key.
IF SHELL type is korn and C SHELL then backspace key will not work,if admin use backpspace key then backspace character(^?^?^?^?^?^?) will appear on
terminal and it always annoy UNIX/Linux admin. So solution to this problem is simply add line  stty erase '^?' in .profile or .cshrc file.

Steps for korn shell type

1 Execute command #ls -a in user home directory and edit .profile and add below entry .
stty erase '^?'

2 Save .profile and reload file using command #. .profile or other option is "logout and login in user account and it will reload user profile.




Steps for C SHELL

1 Execute command #ls -a in user home directory and edit .cshrc and add following entry


 stty erase '^?'

2 save .cshrc and reload using command #. .cshrc or other option is "logout and login in user account and it will reload user profile.




For AIX OS default shell is korn so backspace will not work while deleting command from terminal so solution is to use key ctrl+h to delete command from terminal or
use above mentioned solution.


Thanks !!!!!

No comments:

Post a Comment