Linux Bash的自动补全
安装bash软件包 bash-completion 大部分包管理器都会在 /etc/profile.d/ 创建自动启动脚本 也可以自己编辑 ~/.bashrc,然后重载 source ~/.bashrc 1 2 3 4 5 6 7 8 # 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