my question is simple. I have two windows in tmux session, 1 and 2. How can I merge these two windows into one window split horizontally/vertically? I couldn't find an answer in manpage, so I'm asking here.

1 Answer 1


I think you're looking for join-pane:

join-pane [-bdhv] [-l size | -p percentage] [-s src-pane] [-t dst-pane]
              (alias: joinp)
        Like split-window, but instead of splitting dst-pane and creating a new pane,
        split it and move src-pane into the space.  This can be used to reverse
        break-pane.  The -b option causes src-pane to be joined to left of or above

You can use this with the command-line (C-b :).

  • 1
    This sounds like a great answer, but I'm still struggling with the syntax. Would you mind adding a short example? how are src-pane and dst-pane expected to be specified? May 24, 2022 at 16:09
  • Details on how to specify panes here, but basically you can use numbers. man7.org/linux/man-pages/man1/…
    – polm23
    Aug 30, 2023 at 10:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .