I know that linux bash has autocompletion feature when TAB is pressed and it will show possible completions just below the command. My question is how can you update autocomplete feature so that in addition to showing the list it would also insert the possible completion by subsequent tabs?
For example,
$ sudo apt-[TAB]
would show a list like this:
apt-add-repository, apt-cdrom ,apt-extracttemplates,apt-get
What I want is on next Tab press it should modify the command to:
$ sudo apt-add-repository
On the next Tab press the command would show -
$ sudo apt-cdrom
How to do this?