How can I use the tab key to automatically complete commands like ubuntu?

Source: Internet
Author: User

How can I use the tab key to automatically complete commands like ubuntu?


Bash-completion enhances bash's automatic complementing Function



The first linux release was ubuntu. Later I learned how to work and switched to the release version of The redhat series, we found that bash is used in the same way, but the bash complementing function in the redhat system is much weaker than the bash complementing function in ubuntu, later, I found that the bash-completion software was pre-installed in ubuntu. After installing this software, Your bash complementing function is as powerful as in ubuntu.


Here, we recommend a YUM source with complete software.

Vim/etc/yum. repos. d/bash. repo


[DAG]

Name = DAG repo

Baseurl = http://apt.sw.be/redhat/el?releasever/en/?basearch/dag/

Gpgcheck = 0

Enabled = 1


# Yum search bash-completion

# Yum install bash-completion


The above section is added to your yum source, and then you can use the tab key;


This article is from the "Linux_me" blog, please be sure to keep this source http://wz102.blog.51cto.com/3588520/1241340

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.