how to set user@hostname in RHEL 6

Solution


Code:
export PS1="[\u@\h \W]\$"

I believe that this is what you are looking for

I also believe that it is the default PS1 for BASH on RHEL. If it is different, your system administrator may have overridden it.

EDIT: quotes


Code:
export PS1="[\u@\h \W]\$"

I believe that this is what you are looking for

I also believe that it is the default PS1 for BASH on RHEL. If it is different, your system administrator may have overridden it.

EDIT: quotes
 
Solution