Powerful Linux screen

2011-08-13  来源:本站原创  分类:OS  人气:157 

Linux on the screen after the tool is most useful in following the SSH remote access management tool. Usually, when we use SSH, if a program is running, you can not do anything else that even if the program is run in the background (sometimes found to be in the background, even though I used the command & background), but encountered When more than one program is a very troublesome thing. Moreover, if the net once off, it#%#!$. the screen is a good solution to this problem. Not only have to worry about broken network (off net after, screen still continue to run on the remote machine), and help us to switch between programs in the past, only SSH, rather just open a console, and can be opened with the screen is equal to N console.

Having the benefits of screen, next screen say how to use it. screen can create multiple session, each session can also create multiple window, each window can perform different procedures, with each other.

Established session, you can log in SSH, the direct typing screen you can create a session, and enter the session, you will find that you get a clean window (no information when you log a), then you have entered the The new session and creates a single window. Then you can then create a window, through the Ctrl + ac to create a new window. And then typing Ctrl + aw see all the session window. You can Ctrl + ap / n to select a window and on the next window, you can also ctrl + a id (id number on behalf of the window) to switch to the window you want to go. If only two windows is the easiest way to two consecutive type ctrl + a. So far, most of the time have to meet our needs. However, for some complex operations, for example, some systems when the session itself is a multiple windows open, then when we order not to affect the operation of the system, you can then create a new session, to do other operations. To create a new session, first of all to quit the original session, by ctrl + ad out of the session detatch, attention detatch not kill, the session is still running all the programs continue to run on the remote machine, and is not affected . When we detatch, you return to the original console interface, then we can re-typing to create a new screen session. Knockin screen-ls can see there are a few session, and you attach the current session is in state, while the other session is in the detach state. If you want to enter the other session, you must first detach the current session, then screen-r [session id] to the specified session.

Basically, the main function has been covered, while if you want to continue in-depth, will depend on the man or Ctrl + a? To view help.

相关文章
  • Powerful Linux screen 2011-08-13

    Linux on the screen after the tool is most useful in following the SSH remote access management tool. Usually, when we use SSH, if a program is running, you can not do anything else that even if the program is run in the background (sometimes found t

  • linux screen shot screen shot of the scroll 2010-12-24

    This Transfer from: http://blog.csdn.net/jcwKyl/archive/2010/12/16/6079364.aspx The following describes linux screenshot screenshot http://blog.guoshuang.com/?p=4232 summarizes dozens of ways, very good. Attached to the back of the original, first ad

  • Under Linux Screen Capture 2010-06-14

    Transfer from: http://cha.homeip.net/blog/2007/02/286.html • Istanbul • Cankiri • xvidcap • recordMyDesktop • wink • vnc2swf Istanbul Introduction: http://live.gnome.org/Istanbul Installation: yum install istanbul Launch: Applications → Sound & Video

  • Linux screen设置tab title被重置的问题 2013-11-03

    在某些Linux机器上,开启screen后,当设置了tab的title(Ctrl+A,A)后,输入任意命令,tab title会被重置为机器名称. 之前在某厂实习的时候,也遇到了相同的问题,一直以为是screen配置的问题. 其实,这是bash的配置. 看~/.bashrc: 1 # Source global definitions 2 if [ -f /etc/bashrc ]; then 3 . /etc/bashrc 4 fi 而在/etc/bashrc中,有以下几行: 01 # are

  • LINUX SCREEN窗口中文乱码问题 2014-05-06

    环境:Linux Dist: CentOS 4.3,locale: en_US.UTF-8, .vimrc: set fencs=gbk 目标:终端使用 less/more/grep 等命令正确显示 GBK 编码文件内容,vim 正确显示 GBK 编码文件汉字 症状: 1. 系统自带 gnome-terminal 在设置终端编码为 GBK 后,能达到目标. 2. 使用 xshell 在 windows 平台上设置终端编码为 default 时,ssh 登录到 CentOS,能达到目标. 3. 在

  • Linux screen 命令详解 2013-07-20

    一.背景 系统管理员经常需要SSH 或者telent 远程登录到Linux 服务器,经常运行一些需要很长时间才能完成的任务,比如系统备份.ftp 传输等等.通常情况下我们都是为每一个这样的任务开一个远程终端窗口,因为它们执行的时间太长了.必须等待它们执行完毕,在此期间不能关掉窗口或者断开连 接,否则这个任务就会被杀掉,一切半途而废了. 二.简介 GNU Screen是一款由GNU计划开发的用于命令行终端切换的自由软件.用户可以通过该软件同时连接多个本地或远程的命令行会话,并在其间自由切换. GN

  • Under the management of Linux ------ Screen remote session 2010-11-10

    Screen In short, Screen is a multiplexing between multiple processes can be a physical terminal window manager. Screen in the concept of a session, users can create more than one screen session screen window screen window in each operating as a real

  • Remote session management under Linux ------ Screen 2010-11-10

    Screen In short, Screen is a multiplexing between multiple processes in a physical terminal window manager. Screen in the concept of a session, a user can create multiple screen screen session window, a screen window in each operation as a real telne

  • linux screen 2014-03-03

    screen -dmS "name" screen -list 查看当前存在 screen -r "name" 切换 ctrl+a+d退出

  • linux tips: Use the screen to manage your remote session 2010-04-11

    These articles from http://www.ibm.com/developerworks/cn/linux/l-cn-screen/index.html Level: Intermediate Field strength ( [email protected] ), Software Engineer, IBM China Software Development Center July 31, 2007 Are you often need to remotely log o

  • I used Linux command of the screen 2010-10-11

    I used Linux command of the screen This link: http://codingstandards.javaeye.com/blog/781839 (reprint, please indicate the source) Use Description Often in the maintenance of Linux servers, it was found, because the network connection is suddenly ope

  • Linux in the curl command (Reprinted) 2010-04-20

    Reprinted: http://hi.baidu.com/yuanhotel/blog/item/032190ec35fa6a3b269791d1.html Curl is a very powerful Linux, http command-line tool, its function is very powerful. 1) apart from anything else, start here to get started! $ Curl http://www.linuxidc.

  • Screen session management 2010-09-13

    Study: Field strength ([email protected]), Software Engineer, IBM China Software Development Center Original link: http://www.ibm.com/developerworks/cn/linux/l-cn-screen/ Are you often need to remotely log on to the Linux server? You are not always fo

  • Linux curl command examples 2010-12-08

    Curl is a very powerful Linux, http command-line tool, its function is very powerful. 1) Read page $ Curl linuxidc.com "> http://www.linuxidc.com 2) Save the page $ Curl http://www.linuxidc.com> page.html $ curl-o page.html http://www.linuxidc.

  • Parse inittab file in Linux 2011-02-17

    init is process number 1, can be seen from this point, init process is the starting point for all system processes, Linux boot after the completion of the nucleus, they begin to run the init program. init program needs to read the configuration file

  • Linux Administrator Diary (1) - Linux server installation complete fool Manual 2011-03-13

    Introduction From the desktop to the server from the operating system to embedded systems, from the scattered applied to the entire industry began to take shape, Linux has emerged as a booming trend. Set up the topic by using virtual machine network

  • windows xp windows 7, linux comparison 2011-01-19

    Depending on your configuration, installation may be a bit hard to run Win7 or XP Linux can also try it Comparison: XP is Microsoft's most successful, was the acceptance of a system is XP 2001 Christmas release date is still strong vitality sufficien

  • linux inittab Detailed 2011-09-03

    # # Inittab This file describes how the INIT process should set up # The system in a certain run-level. # # Author: Miquel van Smoorenburg, <[email protected]> # Modified for RHS Linux by Marc Ewing and Donnie Barnes # # Default runlevel

  • ubuntu-ssh long session management 2010-02-09

    Are you often need to remotely log on to the Linux server? You are not always for some long running tasks a headache? Nohup still use it? So take a look at screen it, it will give you a surprise! Are you often need to SSH or telnet to the Linux serve

  • curl using a simple description 2010-07-08

    [The following is reproduced] Curl is a very powerful Linux, http command-line tool, its function is very powerful. 1) apart from anything else, start here to get started! $ Curl http://www.linuxidc.com Enter after, www.linuxidc.com the html on the s