I have just came across something that is really bothering me. Autocompletion on ubuntu works like a charm but when I login as root, e.g.
su I get
tab autocompletion only sometimes.
Why does it work like that? Can one change that?
If they do not exist add them to the end of the file using your favorite text editor.
You haven't mentioned which Ubuntu version you use.