zoukankan      html  css  js  c++  java
  • linux使用bash-completion补全【原创】

    1、安装

    yum install bash-completion-1.3-7.el6.noarch.rpm

    2、设置

    重新登录看是否生效,service + Tab看是否生效

    # service 
    auditd           daytime-dgram    halt             lvm2-monitor     nginx            rpcidmapd        snmptrapd        winbind
    avahi-daemon     daytime-stream   hp-asrd          mdmonitor        nmb              rpcsvcgssd       sshd             wpa_supplicant
    bluetooth        discard-dgram    hp-health        messagebus       ntpd             rsync            sysstat          xinetd
    cgconfig         discard-stream   hpsmhd           netbackup        ntpdate          rsyslog          tcpmux-server    zabbix_agentd
    cgred            dnsmasq          httpd            netconsole       postfix          salt-minion      telnet           
    chargen-dgram    ds_agent         ip6tables        netfs            rdisc            sandbox          telnet.bak       
    chargen-stream   echo-dgram       iptables         network          restorecond      saslauthd        time-dgram       
    chronyd          echo-stream      jexec            NetworkManager   rhnsd            single           time-stream      
    crond            firstboot        killall          nfs              rpcbind          smb              udev-post        
    cvs              haldaemon        lm_sensors       nfslock          rpcgssd          snmpd            vxpbx_exchanged 

    如果不生效可以使用以下方法

    1)在用户家目录下

    vi ~/.bashrc
    . /etc/bash_completion

    2)全局用户生效

    echo ". /etc/bash_completion" >> /etc/profile

    echo ". /etc/bash_completion" >> /etc/profile

  • 相关阅读:
    html5的离线缓存
    html5的本地存储
    html5的地理位置定位
    html5新添加的表单类型和属性
    html5的鼠标拖拽
    win下svn常用操作笔记
    git常用命令笔记
    centos7下NFS使用与配置
    centos7下mysql5.6的主从复制
    centos7下创建mysql5.6多实例
  • 原文地址:https://www.cnblogs.com/paul8339/p/13607108.html
Copyright © 2011-2022 走看看