How to remember multiple tabs' session in terminal? (Alike FF session manager)

kvaibhav picture kvaibhav · May 18, 2011 · Viewed 9.6k times · Source

how does one "undo close-tab" in terminal? And quite related to it, is it possible to remember a session of tabs in terminal?

I mean (alike Firefox) if I close all tabs in a particular terminal window, how do I open with same the next day?

Its really useful to remember the terminal session for people like me who use multiple tabs a lot, and do not wish to start the next day with remembering what (and whereall) one was working, when one left the desk the day before.

In mouse right-click menu of gnome-terminal, one could easily (and I have) mistakenly click close tab instead of 'Copy'and lost track of what and where one was before selecting the text selected. In this case, undo closed-tab will serve a great purpose (available in Firefox already)

Thanks!

--V

Answer

ChriS picture ChriS · May 1, 2012

For the gnome terminal, you can use

gnome-terminal --profile=〈your profile〉 --save-config=〈file〉

I launch it as a background task to save the terminal state periodically.