Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Mar 14 '12 at 11:11

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

1  
or unix.stackexchange.com, even askubuntu.com –  madth3 Mar 14 '12 at 2:44
    
Thank you very much. –  jibz Mar 14 '12 at 3:44

1 Answer 1

up vote 0 down vote accepted

take a look at http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html on how to set up the PS1 variable in bash. It has a wide variety of option

share|improve this answer

Your Answer

 
discard

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.