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