针对Tab键不能使用解决办法(Linux系统)
2024-08-28 09:04:14
Tab键在装Linux操作系统时,最小化安装没有安装能使用Tab键的安装包,Tab键就无法使用,但命令和本该有的目标也有。
这时就需要安装bash-completion包.,废话不多说,直接上!
一、针对最小化安装修复TAB键的使用
1、查看是否安装了bash-completion包
[root@dnsserver2 ~]# rpm -qa | grep bash-*
bash-4.2.46-28.el7.x86_64
2、在本地yum仓库查看是否有bash-completion包
[root@dnsserver2 ~]# yum info bash-*
已加载插件:product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
已安装的软件包
名称 :bash
架构 :x86_64
版本 :4.2.46
发布 :28.el7
大小 :3.5 M
源 :installed
来自源:anaconda
简介 : The GNU Bourne Again shell
网址 :http://www.gnu.org/software/bash
协议 : GPLv3+
描述 : The GNU Bourne Again shell (Bash) is a shell or command language
: interpreter that is compatible with the Bourne shell (sh). Bash
: incorporates useful features from the Korn shell (ksh) and the C shell
: (csh). Most sh scripts can be run by bash without modification. 可安装的软件包
名称 :bash-completion
架构 :noarch
时期 :1
版本 :2.1
发布 :6.el7
大小 :85 k
源 :dvd
简介 : Programmable completion for Bash
网址 :http://bash-completion.alioth.debian.org/
协议 : GPLv2+
描述 : bash-completion is a collection of shell functions that take advantage
: of the programmable completion feature of bash. 或者
[root@dnsserver2 ~]# yum list bash-*
已加载插件:product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
已安装的软件包
bash.x86_64 4.2.46-28.el7 @anaconda/7.4
可安装的软件包
bash-completion.noarch 1:2.1-6.el7 dvd
3、安装bash-completion包
[root@dnsserver2 ~]# yum install -y bash-completion
[root@dnsserver2 ~]# rpm -qa bash-completion
bash-completion-2.1-6.el7.noarch
4、安装完成
- 提示:安装完成后可能无法立即使用TAB键,这时输入bash命令,回车后就可以正常使用了
示例:
[root@dnsserver2 ~]# ll /tmp/
总用量 0
drwx------. 3 root root 17 7月 31 10:46 systemd-private-74ec873b7e79494ab8276e8f0fcf97d4-chronyd.service-Dui4hA
drwx------. 3 root root 17 7月 31 10:46 systemd-private-74ec873b7e79494ab8276e8f0fcf97d4-vgauthd.service-LRaedH
drwx------. 3 root root 17 7月 31 10:46 systemd-private-74ec873b7e79494ab8276e8f0fcf97d4-vmtoolsd.service-RRkIJD
[root@dnsserver2 ~]# ll /tmp/systemd-private-74ec873b7e79494ab8276e8f0fcf97d4-
systemd-private-74ec873b7e79494ab8276e8f0fcf97d4-chronyd.service-Dui4hA/ systemd-private-74ec873b7e79494ab8276e8f0fcf97d4-vmtoolsd.service-RRkIJD/
systemd-private-74ec873b7e79494ab8276e8f0fcf97d4-vgauthd.service-LRaedH/
最新文章
- Struts2 + Spring + Hibernate
- struts2:数据校验,通过Action中的validate()方法实现校验(续:多业务方法时的不同验证处理)
- (转)WEB第三方打印控件[ASP.NET常用工具]
- linux下mongodb定时备份指定的集合
- Java Calendar实现控制台日历
- 转:Github上最受关注的前端大牛,快来膜拜吧!
- HDU 5875 Function 【倍增】 (2016 ACM/ICPC Asia Regional Dalian Online)
- Linux开发工具之gdb(上)
- 在CentOS 7上利用systemctl加入自己定义系统服务
- FPGA中改善时序性能的方法_advanced FPGA design
- java总结,错误集
- IEnumerable<;T>;和IQueryable<;T>;
- App上线Check List
- sqlserver 表循环-游标、表变量、临时表
- tensorflow的特征工程函数
- 移动电力猫HG260GT pon实现路由拨号
- 用windows计划任务执行一些内容的写法,
- EOF与子过程返回
- windows下PyCharm安装及使用
- 蓝桥杯 算法提高 3000米排名预测 DFS 递归搜索 next_permutation()使用