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