Teacake Tech

Technology, software development and virtual events from Scotland

TMUX

TMUX is a great tool, but we can never remember the command lines for it.

So here's a simple cheat sheet of the most common commands:

  • Create a new session: tmux new -s SESSION_NAME
  • When in a session, to exit TMUX but leave the session running: Ctrl + b then d
  • List existing sessions: tmux ls
  • Attach to an existing session: tmux attach -t SESSION_NAME

(We think it's the fact it's -s for one and -t for the other that constantly trips us up!)

There's lots more you can do, and other cheat sheets go into more details.

We keep some technical notes on the tools we use. While they are primarily intended for us as we work, we thought we would share them with others. If anything is wrong here, please contact us!
Last Updated Sun 15 Nov 2026