0

Is there a way to find and kill a tmux window from a different tmux session? Or do I need to attach to the other session and then find the window to kill? How do I do this with cmd line?

tmux kill-window ...?
1
  • Note, if you name your window it will be easier to kill it with kill-window -t sessionname:windowname Commented Feb 21, 2020 at 15:14

1 Answer 1

0

Use -t to kill-window, look at https://man.openbsd.org/tmux#COMMANDS and https://man.openbsd.org/tmux#kill-window.

You can use list-sessions, list-windows or list-panes to find the pane or window you want.

You could also do it interactively using tree mode, C-b s or C-b w then find the window then x (or :kill-window - no C-b - if your tmux is too old to have x in tree mode).

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.