Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sessions

Start a new session

Show all sessions

tmux

tmux ls

tmux new

tmux list-sessions

tmux new-session

Ctrl + b s

:new

Attach to last session

Start a new session with the name mysession

tmux a

tmux new -s mysession

tmux at

:new -s mysession

tmux attach

tmux attach-session

kill/delete session with the name mysession

tmux kill-ses -t mysession

Attach to a session with the name mysession

tmux kill-session -t mysession

tmux a -t mysession

tmux at -t mysession

kill/delete all sessions but the current

tmux attach -t mysession

tmux kill-session -a

tmux attach-session -t mysession

kill/delete all sessions but mysession

Session and Window Preview

tmux kill-session -a -t mysession

Ctrl + b w

Rename session

Move to previous session

Ctrl + b $

Ctrl + b (

Detach from session

Move to next session

Ctrl + b d

Ctrl + b )

Detach others on the session (Maximize window by detach other clients)

attach -d