Skip to content

Instantly share code, notes, and snippets.

@cganterh
Created April 24, 2026 15:41
Show Gist options
  • Select an option

  • Save cganterh/841524314931821958978998583cff59 to your computer and use it in GitHub Desktop.

Select an option

Save cganterh/841524314931821958978998583cff59 to your computer and use it in GitHub Desktop.
TMUX SESSION CHEAT SHEET
TMUX SESSION CHEAT SHEET
Choose session .............. Ctrl-b s
Next session ................ Ctrl-b )
Previous session ............ Ctrl-b (
Last session ................ Ctrl-b L
Rename current session ...... Ctrl-b $
Detach ...................... Ctrl-b d
Create session .............. Ctrl-b : new-session -s NAME
Create detached session ..... Ctrl-b : new-session -d -s NAME
Switch to session ........... Ctrl-b : switch-client -t NAME
Kill current session ........ Ctrl-b : kill-session
Kill named session .......... Ctrl-b : kill-session -t NAME
Create session in same
session group ............... Ctrl-b : new-session -t EXISTING_SESSION
Move current window to
another session ............. Ctrl-b : move-window -t SESSION:
Move specific window to
another session ............. Ctrl-b : move-window -s SRC_SESSION:WIN -t DST_SESSION:
Link current window into
another session ............. Ctrl-b : link-window -t SESSION:
Link specific window into
another session ............. Ctrl-b : link-window -s SRC_SESSION:WIN -t DST_SESSION:
Unlink current window from
this session ................ Ctrl-b : unlink-window
Unlink specific window ...... Ctrl-b : unlink-window -t SESSION:WIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment