Linux/Unix下的虚拟屏幕, 你开始用了吗?

    作为一个DBA, 我经常要连到数据库服务去执行角本或做其他事情, 当然网络突然断开的事情也是经常有的, 因此我们都使用一个共享软件screen, 允许你在服务上使用虚拟屏幕, 这样的话就可以不怕网络断开的情况了. 下面介绍一下最常的几个命令:

    1, 创建一个虚拟屏幕.

screen -S screen_name

    2, 退出屏幕, 你可以同时按下Ctrl+A+D.

    3, 列出所有的虚拟屏幕.

$> screen -ls
There are screens on:
        10786.anysql_screen1    (Detached)
        10793.anysql_screen2    (Detached)
2 Sockets in /tmp/screens/S-oracle.

    4, 重新进入一个屏幕, Detached表示没人连着, Attached表示被人连着, 你只能进入Detached的屏幕.

screen -r 10786.anysql_screen1

    5, 如果你要进入一个被别人Attached的屏幕, 先得断它.

screen -D 10786.anysql_screen1

    我个人只用了上面的几个命令, 使用它, 可以让你做得更好!

留言 (2)

Hi,
could you tell me where to download this tool.
we use 'F-secure ssh' connect to server, it will lose connect if you have no action for a long time, would this tool solve the problem.
thank you.

I believe it's GNU SCREEN, which can be found at:
http://www.gnu.org/software/screen/

发表留言:

« Previous | Main | Next »

英语900句 | English 900

  • On Sundays I often spend some time reading in the library.
  • 星期天我经常在图书馆里看些书.
  • What do think about this poem?
  • 你觉得这首诗怎么样?
  • I like Shakespeare better than Milton.
  • 与弥尔顿比起来, 我更喜欢莎士比亚.
  • How much do you know about the works of George Eliot?
  • 乔治·艾略特的作品你知道多少?