the purpose of that rpm was not clear to you,I think.bash autocompletion is for normal bash users,suppose at # or $ prompt if u type a commands first few words,like for eg;if you typed update and pressed keyboard TAB button twice when bash terminal window is active will show u available options.below is for my sarge's bash.
Code:
prakash@sarge:~$ update (TAB doubleclicked)
updatedb update-menus update-pciids
updatedb.notslocate update-menus.real
update-desktop-database update-mime-database
now if itype in terminal prompt "updated" and presses the TAB,it will complete the command to "updatedb".this is primary command completion in bash.if u have programmable bash completion installed/enabled if u want to restart ur network.in most distros u need to type
Code:
sarge:~# service network restart
or /etc/init.d/network restart.see if u simply type service in root prompt and double click TAB Button it will list u available services in /etc/init.d/ directory..see below
Code:
sarge:~# service (double clicked TAB)
README echo lm-sensors rmnologin
acpid exim4 makedev scsitools-pre.sh
alsa firestarter microcode.ctl scsitools.sh
alsa-utils gdm module-init-tools sendsigs
anacron gpm modutils setmixer
apmd halt mountall.sh single
atd hddtemp mountnfs.sh skeleton
binfmt-support hdparm mountvirtfs smartmontools
bootclean.sh hibernate netapplet stop-bootlogd
bootlogd hostname.sh networking sudo
bootmisc.sh hwclock.sh ntpdate sysklogd
chargen hwclockfirst.sh nviboot sysstat
checkfs.sh hwtools portmap time
checkroot.sh ifplugd powertweakd ....etc etc
this is only possible with bash programmable completion enabled.
like this secondary programmable bah completion is very useful.another example is if u want to "modprobe" a module by using bashprogrmablecompletion double click TAB will list u all the modules available..or with any other commands like "modinfo"
Code:
sarge:~# modinfo
Display all 1631 possibilities? (y or n)
for above there are a huge list of modules to list.if u press 'y' in kbd it will be listed using the more command.just read tldp.org guides for more details.
for ubuntu and debian users "service" command may not be available with a fresh install.so " apt-get update && apt-get install sysvconfig"
will provide u a "service" option