Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
[blah]$ screen -ls
There are screens on:
        16517.pts-0.blah       (01/28/2012 01:55:32 PM)        (Detached)
        4345.pts-1.blah     (01/27/2012 11:22:48 AM)        (Attached)
2 Sockets in /var/run/screen/S-blahblah.

Got 2 questions

1) What's the difference between attached and detached screen

2) Can you kill attached and detached screen and how do you do it? (I killed attached screen with screen -X -S id kill before but I don't think it works on detached one)

share|improve this question

migrated from serverfault.com Feb 1 '12 at 3:14

This question came from our site for system and network administrators.

Is this a linux question? – Matt H Feb 1 '12 at 1:39

Attached means some process is actually using that session, detached means someone left the screen session running, but disconnected from it.

Why not simply connect to the screen sessions one at a time, and simply stop everything that is running? Connect to existing sessions with the command screen -r -d, or screen -R -D.

share|improve this answer
Can you clarify what "a process is actually using that session?" Do you mean it is 'bound' to a terminal window/TTY/SSH session and it will close when that session closes? Or do you mean that there is an active process running in it? – Anonymous Penguin Dec 22 '14 at 16:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.