$ tmux # start tmux
$ tmux attach-session # attach to an existing session
Prefix commands with C-b (Ctrl-b) by default.
:new # create new session
s # list sessions
c # create new window
w # list windows
:swap-window -t <dst-window> # swap current window to <dst-window> (alias: swapw)
:move-window -t <dst-session>: # move current window to <dst-session> as a new window (alias: movew)
% # vertical split
" # horizontal split
o # swap panes