Bash Completion on CentOS 5

9 May, 2007  |  Posted by Danesh  |  in Linux

I use the command line everyday at for work and home. Command switches a part of life but the problem is remembering switches. The man files have always helped and always will continue doing so.

Bash-completion came along to help in this area. It displays a list of a available switched for a specific command by simply hitting the TAB key twice. See screenshots below for clearer picture.

1. Download the rpm . Currently no packages available from the CentOS repos.
#”wget http://www.caliban.org/files/redhat/RPMS/noarch/bash-completion-20060301-1.noarch.rpm”

2. Install the rpm
#”rpm -ivh bash-completion-20060301-1.noarch.rpm”

3. Start a new shell or execute the command below
#”. /etc/bash_completion”

4. Test out your new shell enhancement
#”ls — [TAB][TAB]“

bash-completion1.jpg

bash-completion2.jpg

Other Sources:

All About Linux

Debian Administration

  • Digg
  • del.icio.us
  • BlinkList
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Furl
  • Google
  • Live
  • Facebook
  • Pownce
  • TwitThis
  • E-mail this story to a friend!
  • LinkedIn
  • Ping.fm
Tags:

No Responses so far | Have Your Say!

Leave a Feedback

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>