I am running CentOS 5.6 on a dedicated server. I have accidentally removed the profile files from:

/home/USER123

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:

-bash-3.2$

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

USER123@SERVERNAME
link|improve this question

feedback

2 Answers

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.

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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