Monday, April 9, 2012

screen 用法




       screen - screen manager with VT100/ANSI terminal emulation





Terminal 下:
    screen -ls          # 列出目前有的 screen
    screen -r pid       # 回復某個 screen (之前 detach 掉的)


Screen 裡的組合技:
    ctrl+a, c 的意思是『按下ctrl+a,之後再按c』
    ctrl+a  是 screen 組合鍵都要按的

    ctrl+a, c            # create a new screen
    ctrl+a, p            # previous screen
    ctrl+a, n            # next screen
    ctrl+a, C            # clear the screen.
    ctrl+a, d            # detach the screen
    ctrl+a, k            # kill the current screen
    ctrl+a, l            # Refresh screen
    ctrl+a, w            # show the list of screen
    ctrl+a, i            # info about the screen
    ctrl+a, \            # kill  all screens and return to your shell
    ctrl+a, [0~9]        # switch to screen [0~9]
    ctrl+a, "            # list all screens
    ctrl+a, A            # set title
    ctrl+a, ctrl+a       # recall to previous screen
    ctrl+a, ctrl+x       # lock the screen



No comments:

Post a Comment