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 am running CentOS 5.6 on a dedicated server. I have accidentally removed the profile files from:


There is only the following files in that directory:

  • .bash_history
  • .gitconfig
  • /.ssh
  • /var

Since the other files (I'm presuming there were other files) have been removed the prompt now shows:


Is there a way of repairing this so it goes back to showing:

share|improve this question
up vote 1 down vote accepted

The system default dot-files usually exist under /etc/skel, so you could try to make a copy of those into the users home-directory.

share|improve this answer

It show -bash-3.2$ because the link don't work anymore. Try Recreating another user, maybe that'll fix the problem.

share|improve this answer

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.