Tmux Cheatsheet

Create session with a name

tmux new -s <name>

Attach to session with name

tmux attach -t <name>

List sessions

tmux ls
# or from within a tmux session:
ctrl+b s

Background session

ctrl+b d

Rename current session

ctrl+b $

Kill session

tmux kill-session -t <name>

Background session on remote host and close ssh session

return ~ .