How to rename a tmux session

Rename the current session:

keysprefix + $

Rescue your unnamed sessions

If you started with a bare tmux and now live in session "3", rename it in place: prefix $, type a name, Enter. Sessions can be renamed at any time without disturbing anything running inside.

Related

Verified against tmux 3.6 · updated July 2026 · back to the full cheat sheet