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.

How can I restart / reload the terminal in ubuntu 11.10? I'm using bash. My original reason to ask was that I had to exit and start the terminal again to get new .bashrc aliases to work, but that's fixed by reloading it with ".", now I'm just curious.

share|improve this question
    
What do you mean? What exactly do you want to re-load? –  slhck Nov 3 '11 at 20:57
1  
Basically I'd want the same effect as closing and then starting bash again. If possible with the text in the window still intact, but that's probably much more complicated and I'd settle for losing it. –  Zakamutt Nov 3 '11 at 21:00

2 Answers 2

up vote 3 down vote accepted

Run

bash --login

This will start a new bash login shell new loading your profile. It will inherit the other shells environment though, unless some values are overridden.

If you exit this bash, you'll be in your original shell again.

share|improve this answer
1  
I guess you could use exec to start the new bash shell in the same process? –  Douglas Leeder Nov 3 '11 at 21:15
1  
exec bash seems to work, as does bash --login; exit. Alright, solved I guess. –  Zakamutt Nov 3 '11 at 21:24

You can load another shell in the terminal. Type:

bash

You can put some echo commentary in .bashrc to verify. To verify all aliases type:

alias
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.