linux命令补全包安装,RED HAT LINUX bash 自动补全命令安装

RHEL / CentOS 怎么启用bash命令自动补齐功能呢?请看下面

准备工作:系统镜像,配置好yum源。

1、首先需要安装bash-completion 包:[root@server src]# yum install -y bash-completion

2、安装完成后,需要用source 命令或者是注销当前登陆用户重新登陆系统使其立即生效,如下:[root@server src]# source /etc/bash_completion

3、此时你就可以使用bash 的自动补全了,如下:[root@server src]# yum [Tab 键]

--assumeyes        --config           distro-sync        groupinfo          history            -

--cacheonly        --debuglevel       downgrade          groupinstall       info               -check              deplist            --enableplugin     grouplist          install            -check-update       --disableexcludes  --enablerepo       groupremove        --installroot      p

clean              --disableplugin    --errorlevel       help               list               -

--color            --disablerepo      --exclude          --help             makecache          -[root@server src]# yum in[Tab 键]info     install

4、实例,加入我现在不知道apache 在centos 上面的包名,而我需要使用apache 服务,则可以这样:[root@server src]# yum install -y htt[Tab 键]

httpd-devel.i686          httpd-manual.noarch       httping.x86_64            http-parser.i686

httpd-devel.x86_64        httpd-tools.x86_64        http-parser-devel.i686    http-parser.x86_64

httpd-itk.x86_64          httpd.x86_64              http-parser-devel.x86_64  httpry.x86_64

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值