tmux(terminal multiplexer) 구성 방법 및 단축키 정리
sudo apt install tmux
ctrl + b
)# session 생성
tmux
tmux new -s {{session name}}
# session 목록 조회
tmux ls
# session attach
tmux attach
tmux attach -t {{session name}}
# session detach(session 내에서)
<prefix> + d
# session 강제 종료
tmux kill-session -t {{session name}}
# windows 생성
<prefix> + c
# 윈도우 이름 변경
<prefix> + ,
# window 이동
## next
<prefix> + n
## previous
<prefix> + p
## 특정 window로 이동
<prefix> + {{window number}}
# pane 분할
## 횡
<prefix> + %
## 종
<prefix> + "
# pane 이동
## 지정
<prefix> + q + {{화면에 표시되는 숫자}}
## 순차
<prefix> + o
# pane 삭제
<prefix> + x
ctrl + d
# pane size 변경
## command prompt 진입 후(<prefix> + :)
resize-pane -L 10
resize-pane -R 10
resize-pane -D 10
resize-pane -U 10
# pane layout 변경
<prefix> + spacebar
# pane 전체에 키입력 보내기(동시 입력)
## command prompt 진입 후(<prefix> + :)
setw synchronize-panes