Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

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.