TMUX cheat sheet
Prefix is by default set to <ctrl>+b
Sessions
shell command | tmux command | description |
---|---|---|
tmux new -s <session_name> | creates a new tmux session named session_name | |
tmux attach -t <session_name> | attaches to an existing tmux session named session_name | |
tmux switch -t <session_name> | switches to an existing session named session_name | |
tmux list-sessions | lists existing tmux sessions | |
tmux detach | prefix + d | detach the currently attached session |
Panes
shell command | tmux command | description |
---|---|---|
tmux split-window | prefix + “ | splits the window into two vertical panes |
tmux split-window -h | prefix + % | splits the window into two horizontal panes |
tmux swap-pane -[UDLR] | prefix + { or } | swaps pane with another in the specified direction |
tmux select-pane -[UDLR] | prefix + [UDLR] | selects the next pane in the specified direction |
tmux select-pane -t :.+ | selects the next pane in numerical order | |
prefix + z | zoom active pane to full screen |
Backlinks: