Sign in with
Sign up | Sign in
Your question

how to set user@hostname in RHEL 6

Tags:
  • Hostname
Last response: in Linux/Free BSD
Share
August 3, 2014 11:42:57 PM

I want help in setting user@hostname instead of bash-4.1 ....thanks in advance

More about : set user hostname rhel

August 4, 2014 12:39:51 AM

Your question is unclear. Do you want to create a new user, change the bash prompt, or what?

Please explain what you are trying to do and why. (Better yet, just read a few books about Unix/Linux.)
m
0
l
August 7, 2014 10:39:13 PM

hardtech said:
I want help in setting user@hostname instead of bash-4.1 ....thanks in advance


  1. 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
m
0
l
!