How do I close old tmux sessions

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like