# Ubuntu 开启 Tab 键补全

编辑配置文件

vi /etc/bash.bashrc

找到以下内容取消注释即可

#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