>_ IzzyLab

Topic breakdown

tmux kill-session -t <name> terminates one specified session, leaving the others and the server itself alive — unlike kill-server, which kills everything. You can check whether a session exists without opening it via tmux has-session -t <name>: exit code 0 if the session exists and non-zero if it doesn't — handy for conditions in scripts. The -t (target) option is used throughout tmux to point to the object of an action: a session, window or pane.

What's checked

  1. keep is alive
  2. doomed is terminated

What it looks like