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 ...?
  • Note, if you name your window it will be easier to kill it with kill-window -t sessionname:windowname – meuh Feb 21 at 15:14
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).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.