Customizing the Bash Prompt
written by Samrat P
at Apr 24, 2008
If you desire the handy prompt used in RedHat Linux, you could edit the ~/.bashrc and set this:
export PS1=[\u@\h \W]\$
You will get a prompt like this:
[user@server home]#
If you prefer the FreeBSD style, you should use this instead:
export PS1=\h:\w\$
And this would result in:
server:/home#
I’ve created this one, mixing it all at once:
export PS1=[\t] [\u@\h:\w]\$
This produce a productive result. See it in action:
[13:48:02] [user@host:/home]#Read More...


