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/

最新文章

  1. Struts2 + Spring + Hibernate
  2. struts2:数据校验,通过Action中的validate()方法实现校验(续:多业务方法时的不同验证处理)
  3. (转)WEB第三方打印控件[ASP.NET常用工具]
  4. linux下mongodb定时备份指定的集合
  5. Java Calendar实现控制台日历
  6. 转:Github上最受关注的前端大牛,快来膜拜吧!
  7. HDU 5875 Function 【倍增】 (2016 ACM/ICPC Asia Regional Dalian Online)
  8. Linux开发工具之gdb(上)
  9. 在CentOS 7上利用systemctl加入自己定义系统服务
  10. FPGA中改善时序性能的方法_advanced FPGA design
  11. java总结,错误集
  12. IEnumerable<T>和IQueryable<T>
  13. App上线Check List
  14. sqlserver 表循环-游标、表变量、临时表
  15. tensorflow的特征工程函数
  16. 移动电力猫HG260GT pon实现路由拨号
  17. 用windows计划任务执行一些内容的写法,
  18. EOF与子过程返回
  19. windows下PyCharm安装及使用
  20. 蓝桥杯 算法提高 3000米排名预测 DFS 递归搜索 next_permutation()使用

热门文章

  1. OOUnit3Summary
  2. 2021软工-调研作业-Notion
  3. (六)Struts2的拦截器
  4. 报错:Method definition shorthands are not supported by current JavaScript version
  5. Github Pages+Gridea设置DisqusJS评论
  6. Hadoop完整搭建过程(三):完全分布模式(虚拟机)
  7. synchronized锁由浅入深解析
  8. 【Spring】循环依赖
  9. 自动AC机qwq(大雾)以及trie图fail图的一些结论
  10. mac系统 PHP Nginx环境变量修改