Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've just installed screen, what a great tool!

But i'm having some problems.

CTRL-A K kills a screen CTRL-D detatches from a screen

but what are the difference? both results in loosing the screen?

also, how do i put it way? if i were to open screen, start a application and now i just want get out of the screen (starting a feedpoller and then let it run forever).

screen -list should show and enable me to enter any screen so it must be a way to "quit" but not terminating the screen

share|improve this question

3 Answers 3

up vote 4 down vote accepted

When the screen is detached using Ctrl-A D (not Ctrl-D as you write*), you can resume it using screen -r. So the workflow is something like this:

  • screen
  • Work work work...
  • Detach (Ctrl-A D)
  • Do something else (for example end SSH session)
  • Pick up the detached screen (screen -r)
  • Continue work

If there are multiple detached sessions, then screen -r will let you know and ask you to pick one.

(*) Note that Ctrl-D may end your session. Ctrl-D sends EOF if you have an empty line in your shell. This causes the shell to exit, which terminates the screen session. But the Ctrl-D itself has nothing to do with screen.

share|improve this answer
    
+1 'Ctrl-A' then 'd' is the bit that makes it work as needed. –  Linker3000 Jun 8 '11 at 12:09
    
is there another way to list screens? I've added a title to one of my screens, and there is no way to see the difference from the two other screens? –  Jason94 Jun 8 '11 at 12:20
    
@Jason94: screen -list. Check out man screen for more :-) –  gspr Jun 8 '11 at 12:25

also, how do i put it way?

That is detaching. By detaching from a screen you are keeping it running.

share|improve this answer

Ctrl+A D does what you want, it detaches the screen from the terminal, but you can still start an app and then let it run forever, the screen is not killed so it's still running.

share|improve this answer
    
Ctrl-a d Detach screen from this terminal. (detach) –  Linker3000 Jun 8 '11 at 12:07
    
Fixed it, it was a typo. –  paradd0x Jun 8 '11 at 12:16

Your Answer

 
discard

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.