I learned from somewhere a detached screen can be killed by
screen -X -S [session # you want to kill] kill
where [session # you want to kill] can be gotten from
screen -ls
But this doesn't work. Anything wrong? What's the correct way?
"kill" will only kill one screen window. To "kill" the complete session, use quit
.
$ screen -X -S [session # you want to kill] quit
For dead sessions use: $ screen -wipe