Unbuntu14.04 终端中使用Tab键不能自动补全
解决方案
1、利用vi编辑器打开 /etc/bash.bashrc文件(需要root权限)
sudo vi /etc/bash.bashrc
2、找到文件中的下列代码
#enable bash completion in interactive shells
#if ! shopt -oq posix; then
# if [-f /usr/share/bash-completion/bash_completion ]; then
# . /usr/share/bash-completion/bash_completion
# elif [ -f /etc/bash_completion]; then
# . /etc/bash_completion
# fi
#fi
将注释符号#去掉,即改成