This is an overview of basic interactions of tmux sessions using the command-line.
Start an unnamed session:
tmux
kill-session
Kill current session:
tmux kill-session
new-session
Start a session named foo
:
tmux new -s foo
rename-session
Rename current session to bar
:
tmux rename bar
detach-session
Detech current session:
tmux detach
list-sessions
List all sessions:
tmux ls
The first column is the session name. Unnamed sessions follow zero-based numbering.
attach-session
Attach session bar
:
tmux attach -t bar
See tmux cheat sheet for more tips and tricks.