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

I pressed Alt+F1 and logged in, and realized if I type pkill l and then tab twice, it will show me all the processes starting with l. So I went to gnome-terminal in X, and tried it, but I got nothing [besides filenames].

Why doesn't it work?

share|improve this question
It works here... – enzotib Sep 16 '11 at 15:43
Is the output of complete -p | grep kill the same in both terminals? – arrange Sep 16 '11 at 16:17
Alt-F1 gives you a login shell. When bash is invoked as a login shell, it reads different configuration files (see man bash). Since pkill autocomplete works for me and enzotib in gnome-terminal, too, can you please check, whether you have modified some of the shell configuration files? – Jan Sep 16 '11 at 16:58
@arrange, complete -p output is blank on gnome-terminal. I would try it on Alt+F1, except it isn't loading the Alt+number terminals right now [Need to reboot].. So I tried sudo login in gnome-terminal, and tried logging in as my user, and then I tried pkill and tab, and it works. – Matt Sep 16 '11 at 19:04
up vote 2 down vote accepted

Check that in the ~/.bashrc file (or /etc/bash.bashrc) there are lines (towards the end)

if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
share|improve this answer
appended that to ~/.bashrc and it works – Matt Sep 17 '11 at 0:04

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.