Tmux

  • Attaching and detaching session

  • Runs different session on bash even if SSH connection is closed

Commands

Start a new session

$ tmux new -s <session-name>

Detach from session (but remains in SSH)

CTRL + B, then just D

Attach to session

$ tmux attach -t <session-name>

List sessions

$ tmux list-sessions

Kill session

$ tmux kill-session -t <session-name>

Last updated