Linux uses backspace when ^h + TAB command completion/arrow key invalidation + LS folder and file no color

Source: Internet
Author: User

Delete Issue

Install Kalilinux When you use a normal user, pressing the BACKSPACE key does not implement the delete function.

There are two ways to solve this problem.

A change of shortcut keys:

Use the Ctrl+backspace key combination to implement the DELETE function Ctrl + BACKSPACE

Second, change the environment variable (execute the following command):

$ Stty Erase ^h
TAB Completion/ARROW key failure problem

The command completion function cannot be achieved by pressing the TAB key

Solve

vim/etc/bash.bashrc# Enable bash completion in interactive Shellsif! Shopt-oq POSIX; Then  if [-f/usr/share/bash-completion/bash_completion];    /usr/share/bash-completion/bash_completion.  elif [-f/etc/bash_completion]; then    . /etc/bash_completion  Fifi to release the notes.

Then source

This solves the problem of command completion and the failure of the arrow keys.

ls folder and file no color

Solve

/ROOT/.BASHRC add alias ll= ' Ls-l--color ' Alias la= ' ls-a--color ' Alias l= ' LS-CF--color '

Last source

Ok!

Linux uses backspace when ^h + TAB command completion/arrow key invalidation + LS folder and file no color

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.