Tmux Basics Cheatsheet
These are the most common commands I use in Tmux, all with the default configuration.
List existing tmux sessions
Create a new tmux session names
tmux new -s statamic
The default command prefix is
C-b (Ctrl and ‘b’ simultaneously).
Attach to the most recent session
Attach to the session named
tmux attach -t statamic
Enable mouse control by entering the tmux command line with
C-b : and enter
set -g mouse on
Mouse control allows selecting windows with the mouse and scrolling to work as expected.
Important key commands
C-b c- create a new window
C-b ,- rename the current window
C-b $- rename the current session
C-b d- detach from tmux session
C-b 9- switch to the corresponding window
C-b '- will prompt for the window number to switch to
C-b n- switch to the previous and next windows, respectively