Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Does anybody know why if I type:

apt-get upg<TAB>

I get:

apt-get upgrade

but if I type:

sudo apt-get upg<TAB>

I get:

sudo apt-get upgrade-from-grub-legacy
share|improve this question

1 Answer 1

up vote 2 down vote accepted

Found the solution. Some time ago, trying to make bash-completion work also for sudo, I added:

complete -cf sudo

to my .bashrc. Commenting it out makes my sudo apt-get autocomplete correctly.

share|improve this answer

Your Answer

 
discard

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.