RED HAT LINUX Bash Auto-complete command installation

Source: Internet
Author: User



Rhel/centos How to enable bash command auto-completion? Take a look below



Ready to work: System image, configure Yum source.






1, first need to install Bash-completion package:


[email protected] src]# Yum install-y bash-completion


2, after the installation is completed, you need to use the source command or log off the current user to re-login system to make it effective immediately, as follows:


[Email protected] src]# source/etc/bash_completion


3. You can now use Bash's auto-completion, as follows:


[root@server src]# yum [Tab key]
--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, example, join I do not know the name of the Apache above the CentOS package, and I need to use the Apache service, then you can:


[root@server src]# yum install -y htt[Tab key]
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


This article is from the "kernels" blog, so be sure to keep this source http://ugali.blog.51cto.com/8378051/1940202



RED HAT LINUX Bash Auto-complete command installation


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.