Check your type of shell first. Enter something stupit and see the rror message:
$ blabla -bash: blabla: command not found
$ PS1="\u@\h \w> " root@hostname /etc>Store permanently in /etc/profile, /etc/bashrc, ~/.bash_profile, and ~/.bashrc
PS1="`uname -n` \$PWD> "; export PS1Store permanently under ~/.profile