A practical tmux cheatsheet for daily use. Covers essential commands for session control, window switching, pane splitting, and other common tasks.
Most critical commands to get started with tmux
Start a new session
Start a new named session
List all sessions
Attach to last session
Attach to specific session
Detach from current session
C-b means Ctrl+b
Rename current session
Create a new window
Rename current window
Move to next window
Move to previous window
List all windows
Switch to window number 0-9
Kill current window
Split pane vertically
Split pane horizontally
Navigate between panes
Arrow keys
Go to next pane
Toggle pane zoom
Kill current pane
Resize pane
Hold Ctrl and press arrow keys
Enter copy mode
Exit copy mode
When in copy mode
Scroll page up/down
When in copy mode
Move cursor
When in copy mode
Start selection
When in copy mode
Copy selection
When in copy mode
Paste copied text
Complete reference for creating, navigating, and manipulating tmux sessions
Start a new tmux session
Creates unnamed session
Start a new named session
Replace "mysession" with your session name
Start a new session with a named window
Attach to the most recently used session
Attach to a specific session by name
List all running sessions
Kill/delete a specific session
Kill the tmux server and all sessions
Use with caution - terminates all sessions
Switch to a specific session (from within tmux)
Rename a session from outside tmux
Detach from current session
Session continues running in background
Rename current session
Shows prompt to enter new name
Switch to next session
Cycles through available sessions
Switch to previous session
Cycles through available sessions
Show session list
Interactive session browser
Choose client to detach
Useful when multiple clients attached
Create new session
Uses command mode to create session
Switch to last session
Requires custom keybinding in .tmux.conf
Complete reference for managing tmux windows
Create a new window
Added at the end of the list
Rename current window
Enter new name when prompted
Kill current window
Prompts for confirmation
List all windows
Shows interactive window list
Find window by name
Enter part of window name to search
Next window
Previous window
Last active window
Toggle between current and previous
Go to window number 0-9
Go to window by index
Prompts for window index
Move window to index
Prompts for new index
Enter command mode
Type "swap-window -t <target>" to swap windows
Swap with previous window
Custom binding in .tmux.conf
Swap with next window
Custom binding in .tmux.conf
Create a new window
Create a new window with specified name
Replace "name" with your window name
Select window by index (0-9)
Select window by name
Rename current window
Kill current window
List all windows in current session
Complete reference for creating, navigating, and manipulating panes
Split pane vertically (left/right)
Split pane horizontally (top/bottom)
Convert pane into a window
Creates a new window with this pane
Kill (close) the current pane
Move between panes in the indicated direction
Go to next pane (cycle through all panes)
Go to the previously active pane
Show pane numbers (press number to jump to that pane)
Numbers appear briefly - press the number key quickly
Toggle zoom (maximize/restore) current pane
Resize current pane in the indicated direction
Hold Ctrl while pressing arrow keys after prefix
Resize panes in steps of 5 cells
Hold Alt (Meta) while pressing arrow keys after prefix
Resize down by 10 cells
Can use -U (up), -L (left), -R (right)
Swap current pane with the previous pane
Swap current pane with the next pane
Cycle through preset layouts
Switch to even-horizontal layout
Switch to even-vertical layout
Switch to main-horizontal layout
Switch to main-vertical layout
Switch to tiled layout
Complete reference for navigating, selecting, and copying text
Enter copy mode
Exit copy mode
Paste copied text
Paste content after copying
Move cursor
In vi mode: h, j, k, l
Scroll up/down one page
Go to top of buffer
In vi mode: gg
Go to bottom of buffer
In vi mode: G
Move to top/middle/bottom of screen
Move forward/backward one word
Start/first non-space/end of line
Start selection
In vi mode: v
Copy selection and exit copy mode
In vi mode: y
Clear selection
Append selection to buffer
Rectangle toggle (block selection)
In vi mode: C-v
Forward search
Type text and press Enter
Backward search
Type text and press Enter
Next search match
Previous search match
Incremental reverse search
Vim-style
Incremental forward search
Vim-style