Rhel/centos How to enable bash command auto-completion? Take a look below
Ready to work: System image, configure Yum source.
1, first need to install Bash-completion package:
[email protected] src]# Yum install-y bash-completion
2, after the installation is completed, you need to use the source command or log off the current user to re-login system to make it effective immediately, as follows:
[Email protected] src]# source/etc/bash_completion
3. You can now use Bash's auto-completion, as follows:
[root@server src]# yum [Tab key]
--assumeyes --config distro-sync groupinfo history -
--cacheonly --debuglevel downgrade groupinstall info -check deplist --enableplugin grouplist install -check-update --disableexcludes --enablerepo groupremove --installroot p
clean --disableplugin --errorlevel help list -
--color --disablerepo --exclude --help makecache -[root@server src]# yum in[Tab 键]info install
4, example, join I do not know the name of the Apache above the CentOS package, and I need to use the Apache service, then you can:
[root@server src]# yum install -y htt[Tab key]
httpd-devel.i686 httpd-manual.noarch httping.x86_64 http-parser.i686
httpd-devel.x86_64 httpd-tools.x86_64 http-parser-devel.i686 http-parser.x86_64
httpd-itk.x86_64 httpd.x86_64 http-parser-devel.x86_64 httpry.x86_64
This article is from the "kernels" blog, so be sure to keep this source http://ugali.blog.51cto.com/8378051/1940202
RED HAT LINUX Bash Auto-complete command installation