System Administration & Network Administration
ubuntu bash shell
Updated Fri, 20 May 2022 22:54:59 GMT

TAB completion not working in ubuntu hardy heron

I have recently installed ubuntu hardy and found that shell command completion with TAB doesn't work, the package 'bash-completion' is installed in my system. I guess it is related to dash being the default shell? Is there a way to use tab completion in dash? If there isn't a way then how can i change my default shell to bash?


Dash shouldn't be the default user shell. That would make life much less convenient, because bash is way more usable in interactive sessions. You can check what shell you're actually running with echo $SHELL.

Have a look at /etc/bash.bashrc around line 32. Uncomment the enabling configuration.

Comments (3)

  • +0 – It's also enabled (or can be) on a per-user basis in ~/.bashrc — Oct 24, 2009 at 18:27  
  • +0 – If he added his account (i.e. not the first account made), using adduser instead of useradd, I believe it defaults to sh. — Oct 24, 2009 at 20:11  
  • +0 – Thanks Novelocrat, uncommenting at /etc/bash/bash.rc solved the problem — Oct 25, 2009 at 07:49