-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

2
  • 1
    This is in man page territory. Or a simple search for "Linux screen tutorial".
    – ewwhite
    Jan 7, 2014 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, 2014 at 14:23

4 Answers 4

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.

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

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

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

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .