How do I reload the terminal in Ubuntu?

10

1

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.

Zakamutt

Posted 2011-11-03T20:55:14.703

Reputation: 103

What do you mean? What exactly do you want to re-load? – slhck – 2011-11-03T20:57:37.833

1Basically 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 – 2011-11-03T21:00:33.277

Answers

10

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.

Daniel Beck

Posted 2011-11-03T20:55:14.703

Reputation: 98 421

2I guess you could use exec to start the new bash shell in the same process? – Douglas Leeder – 2011-11-03T21:15:04.597

2exec bash seems to work, as does bash --login; exit. Alright, solved I guess. – Zakamutt – 2011-11-03T21:24:04.057

2

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

boup

Posted 2011-11-03T20:55:14.703

Reputation: 61