1、apt-get install bash-completion(如果不存在 /etc/bash_completion 的话)
2、编辑home目录中的.bashrc文件,添加如下内容。
    if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
    fi