how to stop a screen session linux code example Example 1: linux screen kill attached session screen -X -S SCREENID kill Example 2: kill all screens linux screen -wipe