zoukankan      html  css  js  c++  java
  • screen 基础用法(转)

    ####################### 屏幕分割 ########################

    1. screen
    2. Ctrl-a c    # create a new screen
    3. switch between screens
          Ctrl-a 0-9  
          Ctrl-a Ctrl-a   
          Ctrl-a "    # list all available screens
    4. Ctrl-a S  # split terminal vertically
        Ctrl-a TAB   # switch to another splitted part then use step 3 to select a screen
    5. Ctrl-a Q  # return to full size


    ####################### detach / attach ########################
    1. screen
    2. Ctrl-a d    # detach, screen exit
    3. screen -ls  # list detached sessions
    4. screen -r   # reattach session, if there are more than one session, then you need specifies the pid
    5. reattach will not restore the splitted windows

    http://deep.tw/others/screen/split-vertical.html
    Key    Action    Notes
    Ctrl+a c     new window     
    Ctrl+a n     next window     
    Ctrl+a p     previous window     
    Ctrl+a “     select window from list     
    Ctrl+a Ctrl+a     previous window viewed     
    Ctrl+a S     split terminal horizontally into regions     Ctrl+a c to create new window there
    Ctrl+a |     split terminal vertically into regions     Requires debian/ubuntu patched screen 4.0
    Ctrl+a :resize     resize region     
    Ctrl+a :fit     fit screen size to new terminal size     Ctrl+a F is the same. Do after resizing xterm
    Ctrl+a :remove     remove region     Ctrl+a X is the same
    Ctrl+a tab     Move to next region     
    Ctrl+a d     detach screen from terminal     Start screen with -r option to reattach
    Ctrl+a A     set window title     
    Ctrl+a x     lock session     Enter user password to unlock
    Ctrl+a [     enter scrollback/copy mode     Enter to start and end copy region. Ctrl+a ] to leave this mod
    Ctrl+a ]     paste buffer     Supports pasting between windows
    Ctrl+a >     write paste buffer to file     useful for copying between screens
    Ctrl+a <     read paste buffer from file     useful for pasting between screens
    Ctrl+a ?     show key bindings/command names     Note unbound commands only in man page
    Ctrl+a :     goto screen command prompt     up shows last command entered

  • 相关阅读:
    【二分】XMU 1587 中位数
    【动态规划】XMU 1560 新ACM规则
    【最短路】Vijos P1046 观光旅游
    【递归】Vijos P1114 FBI树(NOIP2004普及组第三题)
    一周多没打代码了。。
    6.4 文件与文件夹操作
    6.3.4 使用marshal 模块操作二进制文件
    6.3.3 使用 shelve 模块操作二进制文件
    6.3.2 使用struct模块读写二进制文件
    6.3.1 使用 pickle 模块读写二进制文件
  • 原文地址:https://www.cnblogs.com/zhenfei/p/6413701.html
Copyright © 2011-2022 走看看