Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I open the terminal on the console I have user@Sytem-Product-Name:-$ and at work when ever I type bash I get bash 3.2$: (or something very similar, Note I'm using putty on other unix distro) for commodity reasons (space).

I would like to see bash 4.2$ in my terminal. I've installed it and made the

sudo make install 

on the directory I've extracted bash but can't seem to make the version appear on my console.

Any help will be appreciated.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You need to change the value of the variable PS1 on the bash config file:

  1. Open (or create) the file ~/.bashrc

  2. At the end, add this line:

    PS1="bash \v\$ "
  3. Save the file and open a terminal.

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.