Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 recently installed and started using guake terminal. I really enjoy the way it keeps terminal sessions active after closing the window, however whenever I reboot I have to rerun some of the tabs that I usually keep alive for programs such as irssi.

I would like to know if there is a way to either remember sessions after reboot, or to reopen tabs and rerun set commands.

For example, when I reboot guake will automatically create a new tab called irc which immediately runs screen irssi.

share|improve this question
guake --help reveals some commands that might be useful, perhaps guake --new-tab=irc; guake --select-tab=irc; guake --execute-command="screen irssi"; (haven't tested this but hope it points you in the right direction?) – d3vid Mar 13 '12 at 9:58
Thanks! I got it sorted. Would you mind posting that as an answer so I can accept it? – Mr Axilus Mar 13 '12 at 10:21
up vote 2 down vote accepted

I don't think Guake can (currently) maintain sessions in the way you describe. But, if you execute the following commands, you can create the same tab every time:

guake --new-tab=irc
guake --select-tab=irc
guake --execute-command="screen irssi"

Repeat for every tab you want, replacing the tab name (irc) and the command ("screen irssi").

For more options like renaming tabs, making Guake open, and so on, see guake --help.

share|improve this answer

Perhaps you could put these into your .bashrc or in /etc/rc.local so that you don't ever need to run them manually, this way they'd either be run when a terminal is opened, or when the system is booted

share|improve this answer
I'll try it, but how do I create a new terminal tab via .bashrc? Would key emulation work? – Mr Axilus Feb 7 '12 at 20:10
@MrAxilus to create a new tab:… – Ciro Santilli 巴拿馬文件 六四事件 法轮功 Jul 19 '15 at 7:13

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.