How to list tmux sessions
List all sessions on the server:
The interactive version is better
Inside tmux, prefix s opens a navigable tree of sessions (expand to see windows, Enter to switch). For scripts, format strings turn the list into clean output: tmux ls -F '#S' prints just the names.
"no server running"
That error just means nothing is running — the tmux server starts with your first session and exits with the last one. It's not broken; there's simply nothing to list.
Related
Verified against tmux 3.6 · updated July 2026 · back to the full cheat sheet