In Mac, if I have a few Terminal windows open and I restart the computer or quit Terminal, the windows that were open last are opened again with their working directories and command histories retained.Is there a way to similarly reopen Ubuntu Terminal windows?
Reopen Terminal windows after restarting
ubuntu;terminal;session
Technically it depends upon the chosen desktop.  The question has been asked here and there without any good answers.  For gnome-terminal, a commonly proposed solution is adding the --save-config option, e.g.,gnome-terminal --save-config=/home/whatever/fooThere is also the dconf-editor which might be effective, depending on what applications you use.In either case, those would only restore a shell to a given working directory; restoring programs running within the shell seems to be glossed over generally (except for the rare case where the application also has session support).Further reading:How to Remember and Restore Running Applications on Next LogonHow to Auto Save Sessions in Ubuntu 14.04 Using Dconf-EditorSome fast way to save and restore tabs of Terminal?How to remember multiple tabs' session in terminal? (Alike FF session manager)gnome-save-session won't save gnome-terminalsgnome-terminal profiles are not being loaded