how to end one of the ubuntu screen sessions code example Example 1: linux screen kill attached session screen -X -S SCREENID kill Example 2: screen kill all killall screen