title: "Kali xfce4终端不能用TAB自动补全"
date: 2020-08-28
tags: ["linux","debian","kali"]
categories: ["linux","debian","kali"]
1、用编辑器打开 /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
将注释符号#去掉,即改成
#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
3、最后 source一下 /etc/bash.bashrc
即可, 即
source /etc/bash.bashrc
转载于:https://www.cnblogs.com/bonelee/p/8794243.html
**
第二方法:
**
1.安装命令补全:
apt-get install bash-completion
2.在 /etc/profile 里加
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
3.刷新/etc/profile
配置文件,使其生效
source /etc/profile
转载于
https://www.yangshengliang.com/kaiyuan-shijie/linux-shijie/452.html
Q.E.D.