Skip to content

Instantly share code, notes, and snippets.

@evertonfragoso
Last active April 3, 2025 16:19
Show Gist options
  • Save evertonfragoso/1a0ad00d8f751c40111e23d308a9d14b to your computer and use it in GitHub Desktop.
Save evertonfragoso/1a0ad00d8f751c40111e23d308a9d14b to your computer and use it in GitHub Desktop.
tmux Ctrl+B Cheat Sheet

CTRL+B followed by any of these

Session Commands

S   List sessions.
$   Rename current session.
D   Detach current session.
?   Display Help page in tmux.
  • Note: to reattach to a detached session, run tmux attach -t session_name

Window Commands

C       Create a new window.
,       Rename the current window.
W       List the windows.
N       Move to the next window.
P       Move to the previous window.
"       Split window horizontally.
%       Split window vertically.
0 - 9   Move to the window number specified.
&       Kill current window

Pane Commands

Arrow Keys  Move to the selected direction pane.
;           Move to the previously active pane.
q           Briefly show pane numbers.
o           Move through panes in order. Each press takes you to the next, until you loop through all of them.
}           Swap the position of the current pane with the next.
{           Swap the position of the current pane with the previous.
x           Kill the active pane.
Ctrl-Up     Resize the pane up
Ctrl-Down   Resize the pane down
Ctrl-Left   Resize the pane left
Ctrl-Right  Resize the pane right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment