linux无法补全命令的方式

1.安装补全命令
sudo apt-get install bash-completion
2.修改配置文件/etc/profile,添加
sudo vi /etc/profile

/* */

if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
3.更行配置文件
source /etc/profile

posted @ 2023-08-15 17:04  听风者~  阅读(197)  评论(0)    收藏  举报