c-b is the main key to trigger tmux commands.
after c-b you can use the following keys to do things.
d " detach
c " create a new windown
w " list all the windows
p " previous window
n " next window
3 " jump to window 3
& " close window
, " rename window
% " vertical split
:sp " horizontally split
x " close x
When starting tmux, you can do tmux -s name_of_session
tmux list-sessions " to show the existing session
tmux attach " to recover the session
tmux attach -b name_of_session
It shows in the format of
name: number of windows.
tmux rename-session [-t current-name] [new-name]
if -t is not provided, the most recent one will be used.