Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 have several workspaces that have several terminals open in each one. I need to reboot my system, but I don't want to have to recreate each workspace after reboot.

Is there a way to save the state of each workspace, so after reboot all terminals reopen in the same working directory they were before, and preferably with the command history as well?

share|improve this question

If reset/shutdown isn't the important part of it, you could hibernate the machine, suspending the state to the disk.

That way you are able to power off the computer without losing your state.

Another way would be to make use of tmux and scripts to have the state start automatically, then you could use your Desktop Environment to keep track of the windows and restore them (XFCE supports this pretty nicely), keeping some of your state (but not all).

share|improve this answer

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.