Skip to content

Latest commit

 

History

History
147 lines (98 loc) · 1.31 KB

tmux.md

File metadata and controls

147 lines (98 loc) · 1.31 KB

Commands

List sessions:

tmux ls
tmux list-sessions

Create new session:

tmux new -s <session name>
tmux new-session -s <session name>

Attach to session:

tmux attach -t <target session>
tmux attach-session -t <target session>

Detach current client:

CTRL+B, D

Give named commands:

CTRL+B, :

Scrolling:

CTRL+B, PgUp
CTRL+B, PgDown

# Press `Q` to quit

Close a window or pane:

CTRL+D

# Or `exit`

Close all windows and panes:

CTRL+B, :kill-session

Windows

Create new window:

CTRL+B, C

Rename current window:

CTRL+B, ,

List all windows:

CTRL+B, W

Move to next window:

CTRL+B, N

Move to previous window:

CTRL+B, P

Move to window number X:

CTRL+B, [X]

Kill the current window:

CTRL+B, &

Panes

Split vertically into panes:

CTRL+B, %

Move to the next (vertical) pane:

CTRL+B, →

Move to the previous (vertical) pane:

CTRL+B, ←

Split horizontally into panes:

CTRL+B, "

Move to the next (horizontal) pane:

CTRL+B, ↑

Move to the previous (horizontal) pane:

CTRL+B, ↓

Show pane numbers for switching:

CTRL+B, Q