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?