Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 newbie to UNIX. When I was practicing some commands in UNIX. Earlier the Prompt was shown like this "[user@localhost ~]$". After some time it shows "bash-3.2$", but still some commands worked. I tried to change the shell type from bash to ksh and csh. But that didn't worked. How can I change this bash-3.2$ back to [user@localhost ~]$ in bash shell.

share|improve this question

migrated from Mar 14 '12 at 11:11

This question came from our site for professional and enthusiast programmers.

or, even – madth3 Mar 14 '12 at 2:44
Thank you very much. – jibz Mar 14 '12 at 3:44
up vote 0 down vote accepted

take a look at on how to set up the PS1 variable in bash. It has a wide variety of option

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.