A Quick and Easy Guide to tmux
The shortcut to split panes into a left and a right pane is C-b %
.
Switching to a different pane uses the C-b <arrow key>
shortcut
Either type exit
or hit Ctrl-d
and it’s gone.
Creating new windows is as easy as typing C-b c
(
To switch to the previous window (according to the order in your status bar) use C-b p
, to switch to the next window use C-b n
.
C-b <number>
where
To detach your current session use C-b d
.
use C-b D
to have tmux give you a choice which of your sessions you want to detach.
tmux ls
tmux attach -t 0
ntmux new -s database
You could also rename your existing session:
tmux rename-session -t 0 database
The next time you attach to that session you simply use
tmux attach -t database.