Maurice,
You'll find the environment variable PS1 contains the prompt format and it's normally the string "[\u@\h \W]\$", where:
\u represents username
\h represents host name
\W represents working directory
So for me it would produce:
[keefobeefo@boggo tmp]$
I suspect it's been disrupted somehow (the u@ you see suggests the first backslash has been removed). You can reset it in either .bashrc or .bash_profile - or even on the fly in a terminal session. Do other users get similar problems with prompts? If yes, then the problem is probably in /etc/bashrc. If no then you'll probably find it's been changed in .bashrc in you home directory.
I hope this helps,
keefobeefo.
|