Working Effectively with Panes and Windows

Throughout this book, you’ve seen ways to divide up your tmux sessions into panes and windows. In this section, we’ll look at more advanced ways to work with those panes and windows.

Turning a Pane into a Window

Panes are great for dividing up a workspace, but sometimes you might want to “pop out” a pane into its own window. tmux has a command to do just that.

Inside any pane, press Prefix ! and tmux will create a new window from your pane, removing the original pane.

Turning a Window into a Pane

Occasionally, it’s nice to consolidate a workspace. You can easily take a window and turn it into a pane. To do this, issue the join-pane command.

Try it out. Create a new tmux session with two windows. ...

Get tmux 2 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.