Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Maybe this is a dumb question. I know how to start a screen or how to list different screens.

screen -ls

or to attached..

There are screens on:
        2477.pts-0.server1      (Detached)
        2522.pts-0.server1      (Detached)
2 Sockets in /var/run/screen/S-root.
screen -r 2477.pts-0.server1

but I keep forgeting how to detach a screen.

Can anyone give me and answer? I want you to show me the exact keys (really don't remember)

This is a good way to have an easy way to keep it simple to search in the future

share|improve this question

3 Answers 3

up vote 11 down vote accepted

Ctrl+A followed by D. The [screen manpage] has a long list of these shortcuts under "DEFAULT KEY BINDINGS".

share|improve this answer
1  
I think that you mean <kbd>Ctrl-A<kbd> <kbd>d</kbd> (lowercase). The upper case (D) is 'powerdetach'. –  Arcege Apr 25 '12 at 0:23

You'll probably see it listed like this in the screen man page:

^a - d

It's important the note the case of the letters as uppercase and lowercase will do different functions.

share|improve this answer

Some systems remove certain bindings by default. So it is best to look at the online keybinding page: Ctrl-a ?. You can also use the command prompt in screen: Ctrl-a :detach. Myself, I generally remove the key bindings for 'detach' and 'powerdetach', except on remote systems.

share|improve this answer

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.