tmux References#
All commands in tmux are triggered by a prefix key followed by a command key. By default, tmux uses C-b
as prefix key. C-b
means pressing Ctrl+B at the same time. Usually, people will configure C-a
(aka. Ctrl+A ) as their alternative prefix key.
Default Shortcuts#
References
panes#
<prefix> %
split pane left and right<prefix> "
split pane top and bottom<prefix> <arrow keys>
navigates between panesC-d
close pane
windows#
<prefix> c
create a new window<prefix> p
navigates to previous window<prefix> n
navigates to next window<prefix> <number>
navigates to specific window
sessions#
- to quit a session, close all panes
- to detach a session,
<prefix> d
tmux ls
list sessionstmux attach -t 0
attach to "0"tmux new -s [NEW_SESSION_NAME]
create a new session with the specified nametmux rename-session -t 0 database
.tmux.conf
Customizations#
References
panes#
<prefix> |
split pane left and right<prefix> -
split pane top and bottomalt <arrow keys>
navigates between panesC-d
close pane
others#
<prefix> r
reload tmux config<prefix> m
toggle mouse mode<prefix> [
enter scrolling modeq
quit scrolling mode