- Prefix key:
ctrl space
ctrl + b
<prefix> c
<prefix> I
Reloads the Tmux environment
-
<prefix> <window_number>
Switches to the specified window number
or
-
<prefix> n
Switches to the next window
-
<prefix> p
Switches to the previous window
<prefix> :
swap-window -s 2 -l 1
Moves a window to a new position in the window list.
-s
specifies the source window, and-l
specifies the new position.
- Kill all the panes inside; or
<prefix> &
Closes the current window
-
Split into panes horizontally
<prefix> %
Splits the current pane into two panes horizontally
-
Split into panes vertically
<prefix> "
Splits the current pane into two panes vertically
<prefix> <arrow_key>
Navigates to different panes using arrow keys
-
<prefix> {
Swaps the current pane with the previous one
or
-
<prefix> }
Swaps the current pane with the next one
<prefix> q <pane_number>
Displays pane numbers and allows you to switch to a specific pane
<prefix> z
Zooms into the current pane, making it full-screen
<prefix> !
Converts the current pane into a window
<prefix> x
Closes the current pane
tmux
Starts a new tmux session
tmux new -s my-session
Starts a new tmux session with a specific name
<prefix> : new-session
Starts a new tmux session
tmux ls
(outside tmux) Lists all active tmux sessions
<prefix> s
Lists all windows in the current session
<prefix> w
Displays a preview of each window in the current session
tmux attach
Attaches to the most recently used tmux session
tmux attach -t my-session
Attaches to a specific tmux session with the name "my-session" --
ctrl h
Left
ctrl j
Down
ctrl k
Up
ctrl l
Right
ctrl \
Previous split
shift alt l
Right
shift alt h
Left
<prefix> [
ctrl v space
orV
orv
<prefix ]