90

CentOS7系统Tab键失效的解决方法

 5 years ago
source link: https://www.linuxprobe.com/tab-key-command.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
导读 使用最小化安装CentOS后,无法使用Tab键补全命令,这里就为大家分享一下解决方法,需要的朋友可以参考下。

今天在centOS上做实验,发现之前在Ubuntu下使用的比较习惯的tab键补全命令的方式不能使用,于是非常好奇,经过查找资料并亲自测试,将可行的解决方式记录如下:

1)首先需要在终端中运行如下命令:

yum install bash-completion//也可以使用通配符安装:yum install bash-c*

或者你可以安装一些初始化的包组

yum -y groupinstall Base Compatibility libraries Debugging Tools Dial-up Networking suppport Hardware monitoring utilities Performance Tools Development tools

如果上述命令不行,可以试试下面这个命令

2)如果上述命令不行,可以试试下面这个命令

yum upgrade

3)如果上述两个命令还是不行,可以将机器重启,或者重新登录

由于我实验时用的是scureCRT,所以我选择使用login命令重新登录,随后sudo -i 进入root模式,可以使用tab补全命令

login//重新登录


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK