close screen linux code example
Example 1: linux screen kill attached session
screen -X -S SCREENID kill
Example 2: kill screen
$ screen -X -S [session # you want to kill] quit
Example 3: kill all screens linux
for scr in $(screen -ls | awk '{print $1}'); do screen -S $scr -X kill; done
Example 4: how to remove a screen session
screen -X -S enter_screen_id_here kill
Example 5: kill screen session from outside
screen -X -S [session # you want to kill] kill
Example 6: linux how to close terminal full screen
F11
Ctrl + Alt + F7
Alt + F11