Cheatsheets
HomeWriteupsResourcesCheatsheets
Terminal Multiplexers
Terminal Multiplexers
  • Tmux
    • Sessions
    • Windows
    • Panes
    • Copy Mode
    • Configuration
Powered by GitBook
On this page

Was this helpful?

  1. Tmux

Panes

An open command prompt (known as “pseudo-terminal”), which may occupy the entire screen or appear horizontally/vertically stacked.

Command

Description

Ctrl + B -> q

Ctrl + B -> q 0 … 9

Switch to pane by number

Ctrl + B -> o

Go to next pane

Ctrl + B -> z

Zoom in/out of pane

Ctrl + B -> !

Convert pane into new window

Ctrl + B -> %

Split vertically

Ctrl + B -> "

Split horizontally

Ctrl + B -> →

Switch to right pane

Ctrl + B -> ←

Switch to left pane

Ctrl + B -> ↑

Switch to upper pane

Ctrl + B -> ↓

Switch to lower pane

Ctrl + B -> ;

Toggle last active pane

Ctrl + B -> [spacebar]

Toggle between pane layouts

Ctrl + B -> {

Move current pane leftward

Ctrl + B -> }

Move current pane rightward

Ctrl + B -> x

Kill / Close current pane

:setw synchronize-panes

:resize-pane -L 5

Move the boundary of the pane leftwards by 5 lines. Direction flags: -U upwards -D downwards -L leftwards -R rightwards

M # M: meta key; ALT for Linux, ESC for macOS#: 1, 2, 3, 4, 5

Splitting panes in a designated form: #=1: uniform vertical split #=2: uniform horizontal split #=3: horizontal split, main pane on top, others on bottom, vertically split, all same width #=4: vertical split, main pane left, others right, horizontally split, all same height #=5: tile, new panes on bottom, same height before same width

PreviousWindowsNextCopy Mode

Last updated 1 year ago

Was this helpful?

Show pane numbers:

Toggle synchronize-panes (the ability to send the same command to all panes at once)