^h ^ When Linux uses the backspace bar? workaround

Source: Internet
Author: User
Tags delete key

Learning Source:

74898123

^h ^ When Linux uses the backspace bar? workaround

Executing scripts under Linux does not pay attention to the ^h when the wrong content needs to be deleted

^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 ^? Add to. bash_profile
Under the CSH: $stty erase ^H
Or add the Stty erase ^h to the. CSHRC

Ctrl+u Delete all characters

^h ^ When Linux uses the backspace bar? workaround

Related Article

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.