GNU Screen 基本用法分割窗口

it2022-05-09  38

http://news.softpedia.com/news/GNU-Screen-Tutorial-44274.shtml

 

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

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

KeyActionNotesCtrl+a cnew window Ctrl+a nnext window Ctrl+a pprevious window Ctrl+a “select window from list Ctrl+a Ctrl+aprevious window viewed Ctrl+a Ssplit terminal horizontally into regionsCtrl+a c to create new window thereCtrl+a |split terminal vertically into regionsRequires debian/ubuntu patched screen 4.0Ctrl+a :resizeresize region Ctrl+a :fitfit screen size to new terminal sizeCtrl+a F is the same. Do after resizing xtermCtrl+a :removeremove regionCtrl+a X is the sameCtrl+a tabMove to next region Ctrl+a ddetach screen from terminalStart screen with -r option to reattachCtrl+a Aset window title Ctrl+a xlock sessionEnter user password to unlockCtrl+a [enter scrollback/copy modeEnter to start and end copy region. Ctrl+a ] to leave this modCtrl+a ]paste bufferSupports pasting between windowsCtrl+a >write paste buffer to fileuseful for copying between screensCtrl+a <read paste buffer from fileuseful for pasting between screensCtrl+a ?show key bindings/command namesNote unbound commands only in man pageCtrl+a :goto screen command promptup shows last command entered

转载于:https://www.cnblogs.com/ellusak/archive/2012/04/20/2459481.html


最新回复(0)