list and close tmux or screen sessions

See the terminal sessions left running, join one, or end them.

  • processes
  • shell

Steps

  1. tmux ls

    the tmux sessions

  2. tmux attach -t NAME

    join one

  3. tmux kill-session -t NAME

    end one

  4. screen -ls

    the screen sessions

  5. screen -r NAME

    join one

  6. screen -X -S NAME quit

    end one, from outside

Commands used

  • tmux
  • screen

Each has a page in lore: lore tmux opens it.