一、针对:CentOS 6.x ## CentOS 6.x默认没有自动补全功能,需要通过EPEL扩展源来安装功能软件 yum install epel-release -y yum install bash-completion -y source /etc/profile yum remove epel-release -y 二、针对:CentOS 7.x yum install bash-completion -y source /etc/profile