Skip to content

Instantly share code, notes, and snippets.

@tapyu
Last active May 27, 2024 18:16
Show Gist options
  • Save tapyu/6dea57f2029e8a8859968f3584334278 to your computer and use it in GitHub Desktop.
Save tapyu/6dea57f2029e8a8859968f3584334278 to your computer and use it in GitHub Desktop.
tmux cheatsheet

Command

Action

SESSION

tmux new [-s mysession] or :new -s [mysession] Start a new session [with the name mysession]
tmux {a|at|attach|attach-session} Attach to last session
tmux {a|at|attach|attach-session} -t mysession Attach to mysession session
tmux {kill-ses|kill-session} -t mysession Kill/delete session mysession
tmux kill-session -a kill/delete all sessions but the current
tmux kill-session -a -t mysession kill/delete all sessions but mysession
keybind action

SESSION

Ctrl + space $ Rename session
Ctrl + space d Detach session
Ctrl + space s Show all sessions
Ctrl + space w Show all sessions and windows
Ctrl + space ( Move to previous session
Ctrl + space ) Move to next session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment