DebugPointer
Published on

Create a new pane in tmux

Create a new pane in tmux

Tmux is one of the most useful tool when it comes to using a linux terminal.

Tmux is a terminal multiplexer, it allows a user to access multiple terminals (or windows), each running a separate program, while providing a single screen to work on. Tmux is useful for running more than one command-line program at the same time, increasing productivity and the way you work.

Let's look at how to create a new pane inside a window in tmux.

Create a pane horizontally in tmux

Let's consider the case where you are inside your tmux pane i.e., your cursor is active in a pane.

You can use the following keyboard shortcut to create a new pane horizontally in tmux-

Prefix + %

By default the prefix is Ctrl-B, so to split tmux window horizontally you can run the following command-

Ctrl-B + %

Create a pane vertically in tmux

Let's consider the case where you are inside your tmux pane i.e., your cursor is active in a pane.

You can use the following keyboard shortcut to create a new pane vertically in tmux-

Prefix + "

By default the prefix is Ctrl-B, so to split tmux window vertically you can run the following command-

Ctrl-B + "

In case you are looking at creating a new window or completely creating new session where you can create logical separation of different tasks you will be doing, that is possible too.

I hope this tutorial for creating a new tmux session was useful. You can also check out the complete tmux cheatsheet of keyboard shortcuts and mouse shortcuts.