I'm using screen on my home server. I start it by issuing

screen -dmS [name]

Then, when I've connected I can Ctrl+A, n to jump between screens and Ctrl+A, c to create new ones... How, however, I have too many and I'd like to remove one of them. How do I do that? How do I go from Ctrl+A, n 4 times down to Ctrl+A, n 3 times to cycle through all of them?

Thanks, Scott

  • 1
    This is in man page territory. Or a simple search for "Linux screen tutorial". – ewwhite Jan 7 '14 at 14:15
  • 1
    I'm sure this is true, but screen, like many linux utilities has, like, 100 functions when I really only use 5 of them. It was not at all obvious to me when I poured through all of that documentation.... – Scott Jan 16 '14 at 14:23

Ctrl+a,n will take you to the next window, Ctrl+a,p to the previous one. Ctrl+a,0..9 will allow you to switch to a particular screen.

"exit" is to kill screen session.

  • <lightbulb> Ah! I now understand more what screen is! That makes so much sense! Thanks! – Scott Jan 16 '14 at 14:24

Simply exit one of the shells you started with "Ctrl+A c". Usually a Ctrl-D or exit is what you need.


If you can't terminate the program ran in a screen window(e.g. terminate shells by using exit), Ctrl+a,k will allow you to kill the window, after prompting you for a confirmation


Just exit the shell that is running in that screen and the window will close.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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