Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my desktop typing python- and pressing Tab offers suggestions of installable packages that are prefixed python. My server doesn't have this ability, how can I fix that?

share|improve this question
up vote 7 down vote accepted

Install bash-completion and put this line in your ~/.bashrc (but check first if there is a similar line first):

. /etc/bash_completion

Note that it will only take effect in new terminals you open from now on. To take effect in the current terminal source your ~/.bashrc

source ~/.bashrc


. ~/.bashrc
share|improve this answer
Actually... you can just type source ~/.bashrc in the command line and it will reload the .bashrc system. You won't need to relogin. – Thomas W. Apr 14 '11 at 1:38
Put your suggestion in the text of the answer, thank you. – enzotib Apr 14 '11 at 12:49
I don't have edit powers :/ – Thomas W. Apr 14 '11 at 15:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.