问题
I screen -r'd into a django server that's running and I can't simply Ctrl-C and exit out of it.
Are there any alternative ways to get out of screen?
Currently, I manually close the tab on my local PC and ssh back in, but that's becoming tiresome.
回答1:
Ctrl-a d or Ctrl-a Ctrl-d. See the screen manual # Detach.
回答2:
- Ctrl-a+\ - Exit screen and terminate all programs in this screen. It is helpful, for example, if you need to close tty connection.
- Ctrl-a+d or - Ctrl-a+Ctrl-d - "minimize" screen,
screen -rto restore it.
回答3:
Ctrl+A then Ctrl+D. Doing this will detach you from the
screensession which you can later resume by doingscreen -r.You can also do: Ctrl+A then type :, this will put you in screen command mode. Type the command
detachto be detached from the running screen session.
回答4:
Ctrl+a followed by k will "kill" the current screen session.
来源:https://stackoverflow.com/questions/4847691/how-do-i-get-out-of-a-screen-without-typing-exit