linux screen command how to kill a screenž code example
Example 1: linux screen kill attached session
screen -X -S SCREENID kill
Example 2: kill screen session from outside
screen -X -S [session # you want to kill] kill
screen -X -S SCREENID kill
screen -X -S [session # you want to kill] kill