^h solution appears when Linux uses backspace

Source: Internet
Author: User
Tags delete key

Used to execute scripts under Linux do not pay attention to the wrong content to be deleted when the ^h always appear, I did not know the truth before I can only run the script again, and later found that there are solutions, so record.

^h is not the H key meaning, is backspace. The main thing is that when your terminal backspace has a problem, it needs to be set.

There are two ways to resolve this:
1. To use the back Delete key (BACKSPACE), hold down the CTRL key while
2. Setting Environment variables
At the beginning or end of the script Stty erase ^h stty erase ^?
Under bash: $ stty erase ^?
Or put Stty erase ^? Added to the. Bash_profile.
Under CSH: $ stty Erase ^h
Or add the Stty erase ^h to the. CSHRC

^h solution appears when Linux uses backspace

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.