echo Impossible|sed 's/Im/To be /'

November 13, 2009

[tip] GNU screen [horizontal|vertical] split window

GNU screen split 四分割,這對監視多台機器極為方便,效果如圖:

110yd@AAA2369 $> cat screen.rc
screen -t "shell" 0
split -v
split
focus
screen -t "top" 2 top
focus
screen -t "editor" 1 jed
split
focus
screen -t "htop" 3 htop

110yd@AAA2369 $> screen -c screen.rc
C-a tab     (focus)       Switch the input focus to the next region.  See also split, remove, only.
C-a X       (remove)      Kill the current region.  See also split, only, focus.
C-a S       (split)       Split the current region horizontally into two new ones.  See also only, remove, focus.
C-a |       (split -v)    Split the current region vertically into two new ones.