man screen :
Screen is a full-screen window manager that multiplexes a physical ter‐ minal between several processes (typically interactive shells). Each virtual terminal provides the functions of a DEC VT100 terminal and, in addition, several control functions from the ISO 6429 (ECMA 48, ANSI X3.64) and ISO 2022 standards (eg insert/delete line and support for multiple character sets). There is a scrollback history buffer for each virtual terminal and a copy-and-paste mechanism that allows moving text regions between windows. When screen is called, it creates a single window with a shell in it (or the specified command) and then gets out of your way so that you can use the program as you normally would. Then, at any time, you can create new (full-screen) windows with other programs in them (including more shells), kill existing windows, view a list of windows, turn out‐ put logging on and off, copy-and-paste text between windows, view the scrollback history, switch between windows in whatever manner you wish, etc. All windows run their programs completely independent of each other. Programs continue to run when their window is currently not vis‐ ible and even when the whole screen session is detached from the user's terminal. When a program terminates, screen (per default) kills the window that contained it. If this window was in the foreground, the display switches to the previous window; if none are left, screen exits.
在技术解释之外,它与在普通gnometerminal中创build制表符有什么不同?
对于手册中可以做的事情列表,我已经可以创build新的选项卡,杀死选项卡,查看我的选项卡列表,在窗口之间切换。 屏幕更方便吗? 有人可以用通俗的话来解释好处吗?
就在你的C&P页面的右侧:
Programs continue to run when their window is currently not visible and even when the whole screen session is detached from the user's terminal.
简单地说,当你的networking连接断开你的screen ,程序会继续运行,当你重新login时你可以重新连接到这个会话。
在其他情况下,这可能是有用的时候,你会使用nohup ,例如运行一个脚本,可以打破networking连接几秒钟(会话死亡,你的脚本远离SIGHUP可以离开你的机器离开networking)。
我不知道很多人使用屏幕的“屏幕pipe理”function,但是我知道很多分离程序的人在注销后保持运行。
如果你知道微软远程桌面如何工作,你很容易理解屏幕是如何工作的。 除了文本控制台以外,大部分是相同的。 所以你可以从屏幕控制台分离(断开连接),然后重新连接到离开的会话。 使用热键在屏幕中的窗口之间切换,复制,粘贴,冻结,杀死等等。
所以主要的好处是,如果你突然断开与屏幕初始化的主机的连接,就可以保存控制台的状态,所以你可以重新连接主机并重新连接上一次会话。
屏幕-Dr(断开连接其他人并连接到会话)Ca a Ca space Ca backspace对于窗口旋转Ca c#创build新窗口阅读man for more,但是这是最有用的热键
对于SSH会话,这是天赐之物。 而不是有一个远程服务器上的标签function5个并发会话(即TCP连接),你可以有1。
现在想象一下,如果你必须pipe理5个不同的服务器,每个服务器上有5个选项 你将有25个单独的选项卡。 有了这个,你可以只有5个标签,然后你知道你在哪个服务器上。
另一个巨大的好处是,你可以从TTY注销(在这种情况下,closures标签),然后重新连接,仍然有你的会议。 这对于pipe理服务器以及在家中是非常有用的,如果你以后只想提出一个会话,但不想在其他的东西上继续看几个小时。
我也用屏幕为我的团队成员做了一个“屏幕共享”会话,展示了一个演示或者展示了一些工作。
通过屏幕,您可以让多个用户在同一个控制台上“看”和“工作”。 用于演示或KT ..
如何: http : //ubuntuforums.org/showthread.php?t=299286
通过屏幕,您可以重新连接到另一台电脑的屏幕会话,或重新启动电脑后。 你可以在服务器上运行一个ssh会话,而不需要打开你的terminal。
你知道甚么可以用屏幕创build分割窗口吗?
将屏幕水平分割成一半
屏幕能够将窗口分成两个或更多的半个水平窗口。 例如,此function将使您能够在半屏幕中工作,同时查看剩余部分中的系统资源(“顶部”)。
要将屏幕分成两部分,首先要创build两个屏幕会话。 然后按Ctrl +一个S将屏幕分成两半,给你一个你已经使用的顶部会话和一个底部的空白会话。
要移到下半部分,请按Ctrl + a,然后按Tab键。 这个组合键将控制台光标移到下半部分。 一旦进入空白部分,您必须将屏幕的下半部分设置为使用两个较早创build的会话之一。 要做到这一点,请按Ctrl + a,然后按“(shift +)”。您将看到一个可用的屏幕会话列表,使用箭头键select一个(小心不要select已经在顶部的一个,或者有一个镜像控制台),然后按Enter键激活它,现在inputtop并按Ctrl + a TAB切换到上半部分,现在应该有一个bash提示符,等待上半部分的命令和系统资源监视下半区。
要返回到全尺寸屏幕,请切换到您想保留的一半,然后按Ctrl + a Q.
还有一个补丁来垂直分割窗口,但它不是默认设置。
我觉得这非常有用,当我必须同时停止日志和启动应用程序(如tomcat)…