Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

This question already has an answer here:

I want to start tmux so that it won't quit when last pane/window is killed. As for now I do it this way :

tmux new -d -s my_session_name

I can add a windows name as such:

tmux new -d -s my_session_name -n window_name

But it will still be killed on last windows kill. I would like to make it like permanent on this machine until somebody explicitly kills it.

share|improve this question

marked as duplicate by slm, Anthon, manatwork, rahmu, jasonwryan Jun 6 '13 at 18:15

This question was marked as an exact duplicate of an existing question.

I think the tmux option does what you want:

tmux set set-remain-on-exit on

Check out this U&L Q&A that asks the same question: Prevent pane/window from closing when command completes - tmux

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.