In this article we will show you how to install Bash Autocomplete feature on CentOS/RHEL or Fedora Linux.
You need to use YUM command to install bash-completion package on your CentOS/RHEL or Fedora Linux.
Type following command to install bash-completion package:
# yum install bash-completion -y
Example output:
# yum install bash-completion -y Failed to set locale, defaulting to C Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: mirrors.viralvps.com * extras: ftp.nluug.nl * rpmforge: ftp.nluug.nl * updates: mirror.widexs.nl Resolving Dependencies --> Running transaction check ---> Package bash-completion.noarch 0:20060301-1.el6.rf will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================= Package Arch Version Repository Size ======================================================================================= Installing: bash-completion noarch 20060301-1.el6.rf rpmforge 125 k Transaction Summary ======================================================================================= Install 1 Package(s) Total download size: 125 k Installed size: 470 k Downloading Packages: bash-completion-20060301-1.el6.rf.noarch.rpm | 125 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : bash-completion-20060301-1.el6.rf.noarch 1/1 Verifying : bash-completion-20060301-1.el6.rf.noarch 1/1 Installed: bash-completion.noarch 0:20060301-1.el6.rf Complete!
[ads]
To use auto competition feature, your need to press TAB key (Example: yum install ht [tab][tab]):
That is all!