I install several servers 2 days ago, what I found after I login to SSH is that the bash prompt is different with my older server, it only show “bash-3.1#” instead of “[username@servername – directory] $”
I found “bash-3.1#” is difficult as I don’t know my current directory location. With a little bit Google search I get an answer.
You can customize your bash prompt by creating a file named .bash_profile (there is a “dot” in front of the filename)
Insert this code in .bash_profile file:
export PS1="[u@h w]$ "
now your bash prompt will look like this: