You've successfully subscribed to Nuvotex Blog
Great! Next, complete checkout for full access to Nuvotex Blog
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.

Add bash command auto completion

Working with latest releases of ubuntu linux shows how well bash command auto completion works. Having seen this feature once you no longer want to miss it. This guide describes how easy auto completion can be added to bash.

Daniel Nachtrub
Daniel Nachtrub

Working with latest releases of ubuntu linux shows how well bash command auto completion works. Having seen this feature once you no longer want to miss it.

Adding auto completion on CentOS 7/8

Auto completion is a feature that can be installed using a package installable by yum.

yum udpate
yum list bash-completion
search package (yum)

Output looks similar to this:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.plusline.net
 * epel: ftp.plusline.net
 * extras: mirror.fra10.de.leaseweb.net
 * updates: centos.schlundtech.de
Available Packages
bash-completion.noarch                                                     1:2.1-8.el7                                                     base
list result

Installing package is straight forward

yum udpate
yum install -y bash-completion
install package (yum)

Restarting your bash (reconnect) will enable auto completion without further configuration (for applications that have registered handlers).

Installing using dnf

If you're using dnf as package manager the command is similar.

dnf udpate
dnf install -y bash-completion
install package (dnf)

Adding auto completion on debian/ubuntu

Similar to centos this works when using debian-based systems. Just use apt and install bash-completion.

apt udpate
apt install -y bash-completion
install package (apt)

As you can see, adding auto complete is really easy. You'll no longer want to miss this.

Linux

Daniel Nachtrub

Just some guy working with computers.