zoukankan      html  css  js  c++  java
  • 针对Tab键不能使用解决办法(Linux系统)

    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/
    
  • 相关阅读:
    快速排序
    ABP Error in roboto.css can't resolve '97uahxiqZRoncBaCEI3aWxJtnKITppOI_IvcXXDNrsc.woff2'
    .NET Core Log
    .NET Core的配置文件
    VirtualBox多网卡模式
    Maven 常见错误
    python压缩文件脚本
    Windows7 64bit 安装python3.3 & cx_Freeze-4.3.2
    Ubuntu Linux环境变量
    Ubuntu12.04 64bit 安装 Dropbox
  • 原文地址:https://www.cnblogs.com/itwangqiang/p/13409930.html
Copyright © 2011-2022 走看看