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

In particular, can the tmux session data be written to a file, and reloaded on reboot?

I'm thinking of something similar to Vim's mksession command.

share|improve this question

Assuming you could save the output of all panes to a file after the fact, you still have to restore the state of all processes in those panes. There was something like that at one point but it still has quite a few limitations. There is no such built-in functionality in tmux. This isn't like Vim which just has to remember which files you opened, whether you saved your work or not, where the cursor was, the history of inputs, etc.

share|improve this answer
is this still the case? – FutuToad Mar 27 '14 at 15:47
Linux checkpoint-restore has advanced a bit in the past years, though I cannot confirm that it is seamless across the board. See the LWN articles. – pilona Apr 8 '14 at 2:05

You can write a script manually that recreates your desired tmux configuration. is an example that has saved me a lot of time. I think that's easier to maintain than something automatically built like seems to do.

share|improve this answer

Check out - I've been using that on OSX to persist sessions between reboots.

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.