TMUX

Commands

Session

  • tmux new -s {session name}: session과 window 동시에 생성
  • tmux switch -t {session name}: 해당 session으로 전환
  • tmux ls: session 목록
  • tmux attach -t {session name}: session 재시작/불러오기
  • tmux detach: session 중단
  • exit: session 종료
  • (ctrl+b) (: 이전 session으로 이동
  • (ctrl+b) ): 다음 session으로 이동
  • (ctrl+b) s: session 선택
  • (ctrl+b) $: session 이름 지정
  • (ctrl+b) d: session 중단 (현재 종료하지 않고 session 나가기)
  • (ctrl+b) [: copy mode (스크롤 등)
  • tmux kill-session -t {session 이름}: session 강제 종료

Window

  • (ctrl+b) c: 새 window 생성
  • (ctrl+b) [숫자]: window 번호 전환
  • (ctrl+b) n: 다음 window 전환
  • (ctrl+b) p: 이전 window 전환
  • (ctrl+b) &: window 강제 종료
  • (ctrl+b) ,: window 이름 변경
  • (ctrl+b) f: window 찾기
  • (ctrl+b) w: window 목록

Pane

  • (ctrl+b) %: 좌우 분할
  • (ctrl+b) ": 상하 분할
  • (ctrl+b) {arrow}: pane 간 이동
  • (ctrl+b) q: pane 번호 표시
  • (ctrl+b) o: 다음 pane으로 이동
  • (ctrl+b) !: 현재 pane을 새 window로 분리
  • (ctrl+b) (ctrl+o): pane 반시계 회전
  • (ctrl+b) (alt+o): pane 시계 회전
  • ctrl + b (누른채로) {arrow}: pane 크기 조절
  • (ctrl+b) (ctrl + arrow): 1 cell 단위 크기 조절
  • (ctrl+b) (alt + arrow): 5 cell 단위 크기 조절
  • (ctrl+d): pane 삭제
  • (ctrl+b) :resize_pane -L 10: pane 크기 조절 (L, R, U, D 사용)
  • (ctrl+b) ?: 단축키 목록 보기



Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • Google Gemini updates: Flash 1.5, Gemma 2 and Project Astra
  • Displaying External Posts on Your al-folio Blog
  • SOLID