-3

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

Scott
  • 267
  • 1
  • 4
  • 10
  • 1
    This is in `man` page territory. Or a simple search for "Linux screen tutorial". – ewwhite Jan 07 '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

4 Answers4

3

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.

Danila Ladner
  • 5,331
  • 22
  • 31
1

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

John
  • 9,070
  • 1
  • 29
  • 34
1

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

mveroone
  • 474
  • 7
  • 22
0

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

EEAA
  • 109,363
  • 18
  • 175
  • 245