How do I get out of a screen without typing 'exit'?

最后都变了- 提交于 2019-11-28 13:10:01

问题


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 -r to restore it.



回答3:


  • Ctrl+A then Ctrl+D. Doing this will detach you from the screen session which you can later resume by doing screen -r.

  • You can also do: Ctrl+A then type :, this will put you in screen command mode. Type the command detach to 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!