Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I remotely SSH login as root (using PUTTY),

The bash shell prompt becomes:

[root@yukiko /]#

When I entered:

getent passwd

The first line I see is this one:


Shouldn't the bash shell prompt look like this? (which corresponds to the first line in /etc/passwd) ?

[root /]#

This is a VPS server with CentOS installed, yukiko is the desired customer login id I provided to the hosting company.

share|improve this question
In this case yukiko is the machine's name. – Chris Nava Feb 7 '10 at 2:54
up vote 5 down vote accepted

If you type:

echo $PS1

at the Bash prompt, you'll see:

[\u@\h \w]

That says to display the username, an at sign, the hostname and the current working directory all inside square brackets.

Evidently, they've given your server the same hostname as your customer login ID.

share|improve this answer
Yes, you are right, I get this: [\u@\h \W]\$ – bobo Feb 7 '10 at 2:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.