ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • tmux 사용
    Flower in my ops/Linux 2015. 6. 1. 15:56

    [tmux]

    - Install for CentOS

    • $ yum install libevent-devel
    • $ yum install tmux

     

    - Command

    • $ tmux -ls 

    : 세션 현황 표시

    • $ tmux new -s flower

     

    : 세션 만들기

    • $ tmux att - t flower

     

    : 기존 세션 들어가기

    • $ [ctrl] a c

     

    : 세션에서 새로운 세션 만들기

    • $ [ctrl] a (h j k l)

     

    : 분할 된 창 이동

    • $ [ctrl] a (number)

     

    : (number) 세션 이동

    • $ [ctrl] a s

     

    : 세션내에서 창 분할(가로)

    • $ [ctrl] a v

     

    : 세션내에서 창 분할(세로)

    • $ [ctrl] a d

     

    : 세션 나오기

    • $ [ctrl] d

     

    : 세션 삭제하고 나오기

    • $ [ctrl] a e

     

    : 나눠진 창에서 같은 동작 활성화

    • $ [ctrl] a E

     

    : 나눠진 창에서 같은 동작 비활성화

    • $ [ctrl] a .

     

    : 세션 번호 바꾸기

    • $ [ctrl] a ,

     

    : 세션 이름 바꾸기

    • $ [ctrl] a z

     

    : 분할된 창 확대 또는 축소

    • $ [ctrl] a [alt] (↑↓→←)

     

    : 분할된 창 크기 조절

    • $ [ctrl] l

     

    : clear

    • $ [ctrl] a [ctrl] a

     

    : 이전 세션으로 이동

    • $ [ctrl] a t

     

    : 현재 시간 표시

     

     

    vi .tmux.conf

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    set -g prefix C-a
    bind-key C-a last-window
     
    # VI keybindings
    setw -g mode-keys vi
     
    # VI for splitting
    bind s split-window -v
    bind v split-window -h
     
    # VI for switching between
    bind h select-pane -L
    bind j select-pane -D
    bind k select-pane -U
    bind l select-pane -R
     
    bind - resize-pane -1
    bind + resize-pane -1
    bind < resize-pane -1
    bind > resize-pane -1
     
    # easily toggle synchronization (mnemonic: e is for echo)
    bind e setw synchronize-panes on
    bind E setw synchronize-panes off
     
    set -g status-bg black
    set -g status-fg white
    set -g status-left-length 30
    set -g status-left '#[fg=green](#S) #(whoami)@#h'
    set-window-option -g window-status-current-bg red
    set-option -g history-limit 10000
    cs

     

    'Flower in my ops > Linux' 카테고리의 다른 글

    [tcpdump]  (0) 2015.08.19
    xz 압축 풀기  (0) 2015.06.09
    파일비교  (0) 2015.06.01
    lftp로 백업/미러링 하기  (0) 2015.06.01
    find  (0) 2015.05.12

    댓글

Designed by Tistory.