bash :如何使用屏幕在下班后在家中使用术语会话?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/614785/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 20:43:28  来源:igfitidea点击:

bash : how to use screen to have a term session used at home after work?

bashgnu-screen

提问by user65636

Everything is in the title, I would like to start a session at work and be able to get it when i'm at home.

一切都在标题中,我想在工作中开始一个会话,并且能够在我在家时获得它。

回答by Rudd Zwolinski

While at work, start a screen session:

在工作时,开始屏幕会话:

$ screen

Do whatever work you want on the terminal session, and when you are leaving to go home, detachthe session by pressing CTRL-Athen D. Your screen session will then disappear. To re-activate it once you are home, resumethe session with the -roption:

在终端会话上做任何你想做的工作,当你离开回家时,按CTRL-A然后按D 来分离会话。然后您的屏幕会话将消失。要在回家后重新激活它,请使用-r选项恢复会话:

$ screen -r

All your work will appear as you enter the saved screen session.

当您进入保存的屏幕会话时,您的所有作品都会出现。