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?
I believe sh is actually symlinked to /bin/dash in Ubuntu. There is no tab completion support with this shell. To set your shell to bash use the following command:
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./bin/sh is symlinked to /bin/dash To change it, do: sudo rm /bin/sh sudo ln -s /bin/bash /bin/sh