typing

While typing commands on a unix system, removing a miss-typed character by the backspace writes down a character ^H instead. To remove a character, you must use Ctrl+BackSpace instead. However, this exercise is quite frustrating for the users. To get rid of this, use stty erase command as demonstrated below:

root@mms1 # ls -l^H^H^H^H
ls: illegal option —
ls: illegal option —
ls: illegal option —
ls: illegal option —
usage: ls -1RaAdCxmnlogrtucpFbqisfL [files]
root@mms1 #
root@mms1 #
root@mms1 #
root@mms1 #
root@mms1 # stty erase ^H
root@mms1 #
root@mms1 #

With this command, your life would be much easier. You can also get rid of this by using bash instead. For me, its even a better option.

Adnan Khurshid

Adnan Khurshid, the author of this article, has been working in a telecommunication sector since 2007. He has worked there as a VAS (Value Added Services) engineer and has excelled remarkably in the field. Working in this field has been his passion and he has always made efforts to keep himself up to date. Find more about him on LinkedIn

More Posts

Tags: , ,

Leave a Reply