Table of Contents
tmux Notes
Structure
Client
\-- Session
+-- Window 0
| |-- Pane 0
| |-- Pane 1
+-- Window 1
|-- Pane 0
Sessions
Create session
tmux new -s <name>
Detach
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
Windows
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