Sessions
Start a new session:
- tmux
- tmux new
- tmux new-session
- :new
Start a new session or attach to an existing session named mysession
- tmux new-session -A -s mysession
Start a new session with the name mysession
- tmux new -s mysession
- :new -s mysession
kill/delete the current session
- :kill-session
kill/delete session mysession
- tmux kill-ses -t mysession
- tmux kill-session -t mysession
kill/delete all sessions but the current
- tmux kill-session -a
kill/delete all sessions but mysession
- tmux kill-session -a -t mysession
Rename session
- ctrl+b $
Detach from session
- ctrl+b d
Detach others on the session (Maximize window by detach other clients)
- :attach -d
Show all sessions
- tmux ls
- tmux list-sessions
- ctrl+b s
Attach to last session
- tmux a
- tmux at
- tmux attach
- tmux attach-session
Attach to a session with the name mysession
- tmux a -t mysession
- tmux at -t mysession
- tmux attach -t mysession tmux attach-session -t mysession
Session and Window Preview ctrl+b w
Move to previous session ctrl+b (
Move to next session ctrl+b )