PuTTY 上会话管理的 Linux 屏幕

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8338706/
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-08-06 02:39:53  来源:igfitidea点击:

Linux Screen for Session Management on PuTTY

linuxbashputtygnu-screen

提问by Churchill

I am connecting to a linux system via PuTTY. I am using GNU screen.

我正在通过 PuTTY 连接到 linux 系统。我正在使用 GNU 屏幕。

Once I input a command on the screen, I am unable to create a new one or do anything else until this command gets completed. I have a feeling I am going about this all wrong.

在屏幕上输入命令后,在此命令完成之前,我无法创建新命令或执行任何其他操作。我有一种感觉,我对这一切都做错了。

When it says Ctrl-A cWhat does this mean? How do I get those keys listed on http://www.rackaid.com/resources/linux-screen-tutorial-and-how-to/

当它说Ctrl-A c这是什么意思?我如何获得http://www.rackaid.com/resources/linux-screen-tutorial-and-how-to/ 上列出的那些密钥

I am currently having to create multiple sessions of PuTTY.

我目前必须创建多个 PuTTY 会话。

采纳答案by Lewis Norton

Once you have executed the command screenyou're now in a screen session. You can create new windows (think of them like tabs) and switch between them. To create a window, you use the command Ctrl-ac. This means:

执行命令后,screen您现在处于屏幕会话中。您可以创建新窗口(将它们视为选项卡)并在它们之间切换。要创建窗口,请使用命令Ctrl- ac。这意味着:

  • Hold down Ctrland asimultaneously (this tells screen you'd like to issue it the following command...)
  • Release the keys
  • Press c(create new window button)
  • 按住Ctrla同时(这告诉屏幕你想发出以下命令......)
  • 松开按键
  • c(创建新窗口按钮)

This should create a new window in the screen session (you now have two).

这应该在 screen 会话中创建一个新窗口(您现在有两个)。

To switch between windows you, again, use the Ctrl-acommand followed by the number of the window you'd like to switch to. E.g., Ctrl-a0will take you home.

要在窗口之间切换,请再次使用Ctrl-a命令,后跟要切换到的窗口编号。例如,Ctrl-a0会带你回家。

Ctrl-a"will list the windows you have active.

Ctrl-a"将列出您已激活的窗口。

Ctrl-akcloses the current active window.

Ctrl-ak关闭当前活动窗口。

Ctrl-ad"Detaches" the screen session, you are moved back to the terminal where you invoked screen. Your screen session is still running in a background process, to return to it use Ctrl-ax.

Ctrl- ad“分离”屏幕会话,您将被移回调用screen. 您的屏幕会话仍在后台进程中运行,使用Ctrl-返回到它ax