700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > linux命令补全包安装 RED HAT LINUX bash 自动补全命令安装

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

时间:2019-06-23 17:55:06

相关推荐

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

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

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

1、首先需要安装bash-completion 包:[root@serversrc]#yuminstall-ybash-completion

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

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

--assumeyes--configdistro-syncgroupinfohistory-

--cacheonly--debugleveldowngradegroupinstallinfo-checkdeplist--enableplugingrouplistinstall-check-update--disableexcludes--enablerepogroupremove--installrootp

clean--disableplugin--errorlevelhelplist-

--color--disablerepo--exclude--helpmakecache-[root@serversrc]#yumin[Tab键]infoinstall

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

httpd-devel.i686httpd-manual.noarchhttping.x86_64http-parser.i686

httpd-devel.x86_64httpd-tools.x86_64http-parser-devel.i686http-parser.x86_64

httpd-itk.x86_64httpd.x86_64http-parser-devel.x86_64httpry.x86_64

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。