Don’t Rely on Ubuntu 14.04 Service Autocomplition
It appears lot of my colleagues think they’ll get the name of any service
in Ubuntu system autocompleted by typing service first_few_letters_of_service_name
and pressing Tab button. When this does not work (and it does not work a lot) it
creates a lot of confusion and rises lot of questions.
In Ubuntu 14.04, the script that handles completions for service
command is
/usr/share/bash-completion/bash_completion
It looks for service names as files in
/etc/rc.d/init.d
, /etc/init.d
, and in the output of systemctl list-units --full --all