>cheatref
tmux
> tmux/sessions

> sessions

16 commands for tmux sessions

// sessions

16 commands
Start a new session
$ tmux
Start a new session with the name mysession
$ tmux new -s mysession
Start a new session or attach to an existing session named mysession
$ tmux new-session -A -s mysession
Attach to last session
$ tmux a
Attach to a session with the name mysession
$ tmux a -t mysession
Show all sessions
$ tmux ls
Session and Window Preview
Ctrl + bw
Detach from session
Ctrl + bd
Choose which client to detach
Ctrl + bD
Move to previous session
Ctrl + b(
Move to next session
Ctrl + b)
Rename session
Ctrl + b$
kill/delete the current session
: kill-session
kill/delete session mysession
$ tmux kill-ses -t mysession
kill/delete all sessions but the current
$ tmux kill-session -a
Kill tmux server and all sessions
$ tmux kill-server

// categories

> sessions> windows> panes> copy mode> misc> help
> view all tmux commands

// categories

> sessions> windows> panes> copy mode> misc> help

// back to tmux commands

> view all tmux commands

> cheatref.com — simple and minimal cheat sheets

AboutPrivacy© 2026 goyostudio