terminate screen session linux code example Example: kill screen session from outside screen -X -S [session # you want to kill] kill