现象
连接到服务器上后执行命令,使用 TAB
健进行命令补全,发现只能补全命令,命令使用的参数等无法自动补全;
解决
# CentOS
yum -y install bash-completion
# ubuntu
apt-get install bash-completion
连接到服务器上后执行命令,使用 TAB
健进行命令补全,发现只能补全命令,命令使用的参数等无法自动补全;
# CentOS
yum -y install bash-completion
# ubuntu
apt-get install bash-completion