CentOS 安装tab命令补全

CentOS 安装tab命令补全

1. 安装epel 源

yum -y install epel-release

2. 加快yum速度

yum -y install yum-plugin-fastestmirror

3. 安装bash-completion

yum -y install bash-completion

yum -y install bash-completion-extras # CentOS 7 再多安装一个

4. 生效

立即生效

source /etc/profile.d/bash_completion.sh 

或者退出终端重新登录

posted @ 2019-11-27 15:18  胖墩哥  阅读(2933)  评论(0编辑  收藏  举报