ubuntu terminate screen code example
Example 1: linux screen kill attached session
screen -X -S SCREENID kill
Example 2: screen kill session
$ screen -X -S [session # you want to kill] quit
Example 3: kill screen session from outside
screen -X -S [session # you want to kill] kill
Example 4: kill all screen sessions linux
pkill screen