본문으로 바로 가기
kitlocal.dev

tmux 치트시트

로컬에서 실행

100% 브라우저에서 처리됩니다. 입력과 출력이 기기 밖으로 나가지 않습니다.

쉬운 언어로 정리한 tmux 터미널 멀티플렉서 명령어: 세션, 윈도우, 분할 창(pane), 동기화 입력, 복사 모드 및 tmux 3.6 스크립팅.

동작 원리

tmux uses a three-level hierarchy: a persistent server holds sessions (projects), each session holds windows (tabs), and each window splits into panes. Detaching leaves the session running in the background so you can reconnect later; inside tmux, most key bindings start with the prefix Ctrl-b followed by one key.

서바이벌 키트

가장 먼저 배워야 할 몇 가지 명령어입니다.

40개 명령어

키보드 단축키/검색창 포커스JK선택 이동C선택 항목 복사F선택 항목 북마크Esc검색 지우기

Manage sessions (shell)

Sessions survive SSH disconnects and terminal restarts. Name every project session so attaching is effortless.

공식 문서: tmux sessions
  • 기본

    Create and attach to a named tmux session.

    tmux new -s <name>

    명령어 만들기

    tmux new -s <name>

    값은 입력한 그대로 삽입됩니다. 공백이나 특수 문자가 포함된 경우 직접 따옴표로 감싸 주세요.

    사용 시점

    Names the session so you can return to the exact workspace after disconnecting or closing your terminal.

    상세 분석

    new
    alias for new-session
    -s <name>
    session name

    예제

    Starts a session named api.

    tmux new -s api

    대체 방법

    • tmux new-session -s <name>

    참고

Windows (tabs)

Windows act like full-screen tabs inside a session. Each appears in the bottom status bar.

공식 문서: Windows and panes

Split & navigate panes

Split one window into multiple panes to edit code beside logs or a test runner.

공식 문서: Pane commands

Scrollback & copy mode

tmux holds its own scrollback buffer per pane. Enter copy mode to scroll, search logs and copy without leaving the keyboard.

공식 문서: Copy mode

Commands & configuration

Customize prefix, mouse support and reload ~/.tmux.conf without restarting running sessions.

공식 문서: Configuration & options

KitLocal 도구에서 사용해 보기

용어집
Prefix
The shortcut pressed before a tmux command key. Default is Ctrl-b (release both keys before pressing the next key).
Session
A named workspace containing one or more windows that stays alive on the tmux server after you detach.
Window
A full-screen view inside a session (similar to a browser tab), numbered starting at 0 by default.
Pane
One rectangular terminal split inside a window, running its own shell.
Copy mode
A scrollback and selection mode entered with Ctrl-b [ so you can scroll up and copy text without a mouse.

2026. 11. 15.에 확인됨 · tmux 3.6 기준으로 확인됨

출처: tmux manual page (man7.org) · tmux GitHub wiki

꺾쇠괄호 안의 내용을 본인의 값으로 바꾸세요. 명령어는 공식 문서에서 가져왔으며, 예제는 명시된 버전에서 실행되었습니다.