I have a lot of screens on my server. With screen -ls
I get:
There are screens on:
12858.test1 (Detached)
28210.test2 (Detached)
12494.moretesting3 (Detached)
31787.testingfour4 (Detached)
13192.testscreen5 (Detached)
5 Sockets in /var/run/screen/S-root.
I know I can quit an individual screen with screen -S 12858 -X quit
or screen -S test1 -X quit
but I need a way to close all the screens at the same time.
Is there an ssh command or bash script that is able to close every open/detached screen?