Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I've noticed on the Desktop version when typing commands like sudo apt-get install mysq I can tab complete like when resolving file paths. However in the server edition this does not happen. Is there a package I need for this, or a configuration file to make this happen?

share|improve this question
up vote 12 down vote accepted

That's strange, maybe package bash-completion is what you're looking for?

share|improve this answer

Check your ~.bashrc file. Last para of mine reads as follows:

# enable programmable completion features (you don't need to enable

# this, if it's already enabled in /etc/bash.bashrc and /etc/profile

# sources /etc/bash.bashrc). if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion fi

This is unmodified from the originally installed (desktop edition) file. Obviously if the section starting with if and ending with fi is commented out, then you won't get completion. Also check the other listed file locations of course.

share|improve this answer

I strongly recommend you to check zsh

you can simply intall it with

sudo apt-get install zsh

it's better than bash, and it has a lot of great customizations

share|improve this answer

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.