My server has many expired tmux sessions running. How can I quickly remove them without killing my active session.
One option is to find each session and type tmux kill-session -t N but this would be a lot of commands to type for 20 sessions. What are some other options?
1 Answer
Kill all other sessions except the current one:
tmux kill-session -a 1