Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Bash completion does not have sudo available. Look at /etc/bash_completion.d. Commented Nov 8, 2016 at 21:18
  • I don't understand. There is no file called sudo in /etc/bash_completion.d - yes. But on my ubuntu/debian systems there is also no such file in there but there parameter completion works. sudo apt-get di[tab] completes to sudo apt-get dist-upgrade as desired Commented Nov 9, 2016 at 9:45
  • 1
    Ubuntu provides its own bash completion scripts/rules than other distributions. You will need to look at the files the bash-completion package in ubuntu provides, find the one for sudo and go from there. it may not be named as such, but you can use grep to find it. Commented Nov 11, 2016 at 17:40
  • 1
    but where should I search? I did a grep for sudo on everything in /etc/bash_completion.d and found nothing. It must be somewhere else Commented Nov 20, 2016 at 20:15