Session Commands

Detach

d

Rename session

$

Swap between sessions

(/)

Attach

a

  • -t 0 - attach to "session 0"
New session

:new

  • -s - add a name to the session tmux new -s <session-name>
Rename session

$

List overview of sessions

s

Kill session

:kill-ses -t <session-name>

Change default directory of new windows

:attach -c /path/to/default/directory

Save session / restore session (tmux-resurrect)

<C-s> / <C-r>