Create and Rename Sessions in tmux

From the tmux cheat sheet ยท Sessions ยท verified Aug 2026

Create and Rename Sessions

Create a named session and rename it later.

bash
tmux new-session -s api
๐Ÿ’ก Name sessions by project or task
๐Ÿ“Œ -d creates the session without attaching
๐Ÿ” Session names must be unique on the server
โšก Ctrl-b $ renames the attached session
sessionscreaterename

Continue with tmux

Save the full cheat sheet or work through every related task.

More tmux tasks

Back to the full tmux cheat sheet