| Category | Shortcut / Command | Action |
|---|---|---|
| Sessions | tmux new -s <name> |
Start a new named session |
| Sessions | tmux ls |
List all active sessions |
| Sessions | tmux rename-session -t <name> <new name> |
Rename a session |
| Sessions | tmux attach-session -t <name> |
Connect/Re-attach to a session |
| Sessions | Ctrl + b, then d |
Detach (Keep everything running in background) |
| Windows | Ctrl + b, then c |
Create a new full-screen window |
| Windows | Ctrl + b, then , |
Rename the current window |
| Windows | Ctrl + b, then n |
Switch to Next window |
| Windows | Ctrl + b, then p |
Switch to Previous window |
| Windows | Ctrl + b, then & |
Kill/Destroy the current window |
| Panes | Ctrl + b, then % |
Vertical Split (Side-by-side) |
| Panes | Ctrl + b, then " |
Horizontal Split (Top and bottom) |
| Panes | Ctrl + b, then Arrows |
Switch between panes |
| Panes | Ctrl + b, then z |
Zoom (Toggle pane to full-screen and back) |
| Panes | Ctrl + b, then x |
Close the current pane |
| Navigation | Ctrl + b, then w |
Interactive List of all windows/panes |
| Scrolling | Ctrl + b, then [ |
Enter Scroll Mode (Use arrows/PgUp/PgDn) |
| Scrolling | q (while in scroll mode) |
Exit Scroll Mode and return to prompt |
Created
March 8, 2026 17:25
-
-
Save timsonner/04c346804e14e1f82595e3bc6ea2537c to your computer and use it in GitHub Desktop.
Tmux cheatsheet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment