I recently set up a new user using "adduser username" on my server and noticed that when I login I get:
$
Also, with my new user there is no folder highlighting, or tab completion.
However when I login as root I get a full terminal prompt plus highlighting, completion etc.
root@lin01:~#
Anyone have any idea what I did wrong?
Edit: Solution was to type
chsh -s /bin/bash
While logged in with the $.
Your new user's login shell has been set to
/bin/sh
, which on Ubuntu is dash. This is a shell intended to be small and fast, to run scripts efficiently. It doesn't have any interactive features. Change your shell to zsh (better) or bash (more common):If you want to change
adduser
's default shell, edit/etc/adduser.conf
:After you follow Gilles' advice, increase the awesomocity of the prompt by adding this code to the user's ~/.bashrc (and your root's .bashrc):
fiddle with it too.. fiddling is important.