Kill detached screen session

Kill detached screen session [closed]

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?



Answer:

"kill" will only kill one screen window. To "kill" the complete session, use quit.

Example

$ screen -X -S [session # you want to kill] quit

你可能感兴趣的:(Kill detached screen session)