Perhaps you've just seen this in the bash prompt:
Instead of the expected user@hostname#
It is probably because you are missing .bash_profile or .bashrc in your home directory
Check for yourself:
ls -al ~/|grep -E ".bash_profile|.bashrc"
-rw-r--r--. 1 root root 176 May 20 2009 .bash_profile
-rw-r--r--. 1 root root 176 Sep 22 2004 .bashrc
If you are missing either just take these default files that pull from /etc/bashrc and will give you what you want:
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
# User specific environment and startup programs
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
Once you've sorted this out just login again or open a new bash shell and things should be all good again
linux, bash, prompt, username, directory, ve, user, hostname, bash_profile, bashrc, ls, grep, quot, rw, sep, default, etc, aliases, functions, fi, startup, programs, bin, export, alias, rm, cp, mv, global, definitions, sorted, login, shell,