Tool
tmux 사용 방법
'김용환'
2018. 12. 19. 19:23
<자주 사용하는 tmux 사용 방법>
1. 세션 열기
$ tmux new -s [이름]
예) tmux new -s screen1
$ tmux new -s foo -d
(데몬으로 뜸)
$ tmux
(그냥 tmux 세션으로 들어감)
2. 세션 목록 보기
[~] tmux ls
foo: 1 windows (created Wed Dec 19 20:39:30 2018) [80x24]
screen1: 1 windows (created Wed Dec 19 20:31:49 2018) [154x71] (attached)
3. 세션 들어가기 (attach)
$ tmux a -t [name]
예) tmux a -t foo
4. 세션 나가기 (detach)
ctrl + b을 누르고 d를 누른다.
(ctrl + b) + d
5. 세션 종료하기
$ tmux kill-session -t [name]
예) tmux kill-session -t screen1
6. 세션에서 윈도우 (탭) 실행하기
(ctrl + b) + c
(개인적으로 이것보다는 pane이 편함)
7. 세션에서 panel 작업하기
horizontal split : (ctrl + b) + "
vertical split : (ctrl + b) + %
pane 이동하기 : (ctrl + b) + 방향키
pane 닫기 : (ctrl +d)