bash stop all screens code example
Example 1: kill screen
$ screen -X -S [session # you want to kill] quit
Example 2: kill all screens linux
for scr in $(screen -ls | awk '{print $1}'); do screen -S $scr -X kill; done
$ screen -X -S [session # you want to kill] quit
for scr in $(screen -ls | awk '{print $1}'); do screen -S $scr -X kill; done