본문 바로가기

이거슨 상식!

tmux 단축키 정리

1. 세션 생성

tmux new -s mysession

 

2. 마지막 세션에 붙기 

tmux a = tmux at = tmux attach =  tmux attach-session

 

3. 특정 세션 붙기

tmux a -t mysession = 위에처럼 사용가능 

 

4. 세션 내에서 윈도우 조작 모드 ( 조작모드후 page up/page down 을 하면 쉽게 이동 ) 

ctrl + b  ,    [   

 

5. 세션 활성화 상태로 떼어내기 

ctrl +b,   d

 

6.  세션 종료

ctrl + d

 

7. 윈도우 닫기 

ctrl + b , x

 

8. tmux 종료 

tmux kill-server

 

9. 윈도우 종료

exit

 

c : 윈도우 생성

& : 윈도우 닫기

n   : 다음 윈도우

p   :  이전 윈도우 

0~9  : 윈도우 넘버

l    : 윈도우 리스트 

 

7. 고급 

tmux binding 변경 

기본키 ctrl + b   --> ctrl + j 로 변경 

~/.tmux.conf 에  아래내용 추가 

set -g prefix C-j
unbind-key C-b

bind-key C-j send-prefix

 

수정후  source 적용해주기. 

 

tmux source-file ~/.tmux.conf

 

도움1) 기본방법

https://leeyj7141blog.wordpress.com/2016/12/13/tmux-%EC%82%AC%EC%9A%A9%EB%B2%95/

도움2) source 방법 

https://data-newbie.tistory.com/226

도움3) 기본정리

https://tmuxcheatsheet.com/