I am using Ubuntu 20.04. The su
autocomplete stopped working. For example when I type:
su TabTab
It lists the files and directories of the current directory, where as it should list the available users.
Bash auto-complete for other commands is working fine for example:
apt-get TabTab
It lists the available apt-get
options.
usermod TabTab
It lists the available user accounts.
su
was working fine before and now it is not. I have no idea when it stopped working.
I have checked other questions but most of them are related to bash-completion, not specific to su
. So, before marking it duplicate please check the existing answer if it addresses su
.