This page looks best with JavaScript enabled

tmux Notes

 ·  β˜• 2 min read  ·  ✍️ Ben Mason

tmux Notes


    \-- Session
        +-- Window 0
        |    |-- Pane 0
        |    |-- Pane 1 
        +-- Window 1
             |-- Pane 0


Create session
tmux new -s <name>
Ctrl-b d
Show sessions
tmux ls
Attach to session
tmux attach -t 0
Rename session
tmux rename-session -t <session number or name> <session number or name>
Kill session
tmux kill-session -t <session number or name>
Ctrl-b $ Rename Current session
Ctrl-b w List windows and Sessions


Ctrl-b c Create Window
Ctrl-b n Switch to next window
Ctrl-b p Switch to previous window\
Ctrl-b <number> Switch to specific window
Ctrl-b , Rename current window

Window Panes

Ctrl+b " β€” split pane horizontally.
Ctrl+b % β€” split pane vertically.
Ctrl+b ! – Move Pane to New Window
Ctrl+b ; Change to last active Pane
Ctrl+b z – Zoom (fullscreen) current pane
Ctrl+b { | } – change Pane order
Ctrl+b Spacebar – Toggle layouts
Ctrl+x – kill pane

:# – references a specific window ie window 0 is :0

Ctrl+b arrow key β€” switch pane.
Hold Ctrl+b, don’t release it and hold one of the arrow keys β€” resize pane.

:setw synchronize-panes – send output to all panes

:resize-pane -D (Resizes the current pane down)
:resize-pane -U (Resizes the current pane upward)
:resize-pane -L (Resizes the current pane left)
:resize-pane -R (Resizes the current pane right)
:resize-pane -D 10 (Resizes the current pane down by 10 cells)
:resize-pane -U 10 (Resizes the current pane upward by 10 cells)
:resize-pane -L 10 (Resizes the current pane left by 10 cells)
:resize-pane -R 10 (Resizes the current pane right by 10 cells)

Scrolling and copy

Ctrl-b [ – Scroll (copy) mode , normal keys work q to leave
/ forward search
? backwards search
Spacebar start selection

Das Blinken Lichten Β· Getting started with TMUX

Share on

Ben Mason
Ben Mason
Computer Security – Reverse Engineering – Malware – Electronics Hobbyist – Sometimes Photographer – Spaceflight – Cat Enthusiast