Tmux hotkeys & cheatsheet
Tmux Hotkey Cheatsheet
Session Management Hotkeys
- tmux new -s [session-name] - Create a new Tmux session with a name
- tmux attach -t [session-name] - Reattach to an existing Tmux session
- tmux switch -t [session-name] - Switch to a different Tmux session
- tmux detach - Detach from the current Tmux session
Window Management Hotkeys
- Ctrl-b c - Create a new window
- Ctrl-b w - List all windows
- Ctrl-b n - Switch to the next window
- Ctrl-b p - Switch to the previous window
- Ctrl-b , - Rename the current window
- Ctrl-b & - Close the current window
Pane Management Hotkeys
- Ctrl-b % - Split the current pane into two vertical panes
- Ctrl-b “ - Split the current pane into two horizontal panes
- Ctrl-b arrow key - Switch to the pane in the specified direction
- Ctrl-b x - Close the current pane
- Ctrl-b z - Toggle between zooming in and out of the current pane
Further Reading
https://gist.github.com/MohamedAlaa/2961058
https://gist.github.com/ryerh/14b7c24dfd623ef8edc7