>_ IzzyLab

Topic breakdown

The tmux server holds named sessions, and tmux ls (list-sessions) lists them — each on its own line like name: N windows (created ...). The command talks to the server through the user's socket, so it sees every session started in the background (new-session -d). The output is plain text: you can redirect it to a file or filter it with grep, which is handy for scripts that check whether the right session is up.

What's checked

  1. both sessions are in the file

What it looks like