Linux Ubuntu tab key auto-completion command method

  

In Ubuntu system, you can use the tab key to automatically complete the command, but in other Linux systems, this function does not exist, in order to achieve Ubuntu in Linux What is the automatic completion command function of the tab key? The following small series will introduce the method to everyone.

linux releases first contact with ubuntu, study and work and other reasons then turned to the release of RedHat system, using the same found in using the bash but redhat system function than bash completions The ubuntu bash's completion function is weak. After checking the information, it is pre-installed with bash-completion software in ubuntu. After installing this software, your bash completion function is as powerful as ubuntu

It is very good to recommend a YUM source here, the software is very complete

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 is the introduction of the Ubuntu tab key auto-completion command in Linux. Just add the code in the text to the yum source. Linux can use the tab key to automatically complete the command.

Copyright © Windows knowledge All Rights Reserved