screen quit sessions code example
Example 1: screen quit session
# First, find the session you want to quit
screen -ls
# Quit the session
screen -XS [session identifier you want to quit] quit
Example 2: kill screen sessions
screen -ls
screen -XS [screen sessionid] quit
#eg: screen -XS 20411 quit