Skip to content

Instantly share code, notes, and snippets.

@DanielZwijnenburg
Created October 26, 2014 13:38
Show Gist options
  • Save DanielZwijnenburg/9d1bd488f96cc02f7479 to your computer and use it in GitHub Desktop.
Save DanielZwijnenburg/9d1bd488f96cc02f7479 to your computer and use it in GitHub Desktop.
tmux cheat sheet
Split Screen into 2 Panes: Ctrl-b %
Split current Pane horizontally into 2 Panes: Ctrl-b "
Switch between Panes: Ctrl-b o
Create new Window: Ctrl-b c
Switch between Windows: Ctrl-b n # next
Ctrl-b p # previous
Detach from Session: Ctrl-b d
Re-attach to a Session: tmux attach -t [session-name]
Create a Session: tmux new -s [session-name]
Switch between Sessions: tmux switch -t [session-name]
Switch between Sessions within Tmux:
Ctrl-b ( # previous session
Ctrl-b ) # next session
Ctrl-b L # ‘last’ (previously used) session
Ctrl-b s # choose a session from a list
List Sessions: tmux list-sessions
List all commands: Ctrl-b ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment