검색과 인쇄가 가능한 tmux 참고자료입니다: 세션, 윈도우, 페인, 카피 모드, prefix 재설정, 설정, 플러그인, 스크립팅까지. 무료입니다.

Sessions

11
tmux new -s work
Start a named session
tmux new -s work -d
Start detached (in the background)
tmux new -As work
Attach if it exists, else create
tmux ls
List running sessions
tmux attach -t work
Attach to a session (a = attach)
Prefix d
Detach from the current session
Prefix $
Rename the current session
Prefix s
Interactive session switcher
Prefix ( / )
Previous / next session
tmux kill-session -t work
Kill one session
tmux kill-server
Kill all sessions and the server

Windows

10
Prefix c
Create a new window
Prefix ,
Rename the current window
Prefix n / p
Next / previous window
Prefix 0..9
Jump to window by number
Prefix l
Toggle to the last-used window
Prefix w
Interactive window list
Prefix f
Find a window by name
Prefix &
Kill the current window (confirms)
Prefix .
Move window to another index
swap-window -s 2 -t 0
Swap two windows by index

Panes

12
Prefix %
Split vertically (side by side)
Prefix "
Split horizontally (stacked)
Prefix arrow keys
Move between panes
Prefix o / ;
Next pane / last-active pane
Prefix q
Show pane numbers (press to jump)
Prefix z
Zoom: toggle pane full-screen
Prefix x
Kill the current pane (confirms)
Prefix { / }
Swap pane with previous / next
Prefix Ctrl+arrow
Resize pane one cell at a time
Prefix Space
Cycle built-in pane layouts
Prefix !
Break the pane into its own window
join-pane -s 2 -t 1
Move a pane into another window

Copy mode & scrolling

11
Prefix [
Enter copy mode (scroll history)
q / Escape
Leave copy mode
Prefix PgUp
Enter copy mode scrolled one page up
Space then Enter
Start selection, then copy (emacs)
v then y
Start selection, then copy (vi keys)
Prefix ]
Paste the copied text
/ and ?
Search forward / backward
n / N
Next / previous search match
g / G
Top / bottom of history (vi keys)
setw -g mode-keys vi
Use vi keys in copy mode
tmux capture-pane -p > out.txt
Dump pane contents to a file

Prefix key & rebinding

9
Ctrl+b
The default prefix key
Prefix key, then the command key
Press separately, not together
set -g prefix C-a
Use Ctrl+a as prefix (screen style)
unbind C-b
Free the old prefix binding
bind C-a send-prefix
Prefix twice sends it to the app
bind r source-file ~/.tmux.conf
Reload config with Prefix r
bind -n M-Left select-pane -L
-n = no prefix needed (Alt+Left)
bind -r H resize-pane -L 5
-r = key repeats within timeout
tmux list-keys
Show all current key bindings

Command mode (:)

9
Prefix :
Open the tmux command prompt
:new-window -n logs
New window named "logs"
:split-window -h
Split the pane horizontally
:rename-session dev
Rename the current session
:setw synchronize-panes on
Type into all panes at once
:swap-pane -s 0 -t 1
Swap two panes by index
:resize-pane -D 10
Resize down by 10 cells
:source-file ~/.tmux.conf
Reload the configuration
:kill-server
Stop tmux entirely

Configuration essentials

11
set -g mouse on
Mouse: select panes, resize, scroll
set -g base-index 1
Number windows from 1, not 0
setw -g pane-base-index 1
Number panes from 1 too
set -g renumber-windows on
Re-number after closing a window
setw -g mode-keys vi
vi keys in copy mode
set -g history-limit 50000
Bigger scrollback buffer
set -g default-terminal "tmux-256color"
Proper colors inside tmux
set -sg escape-time 0
No Esc delay (helps vim users)
bind | split-window -h
Memorable split: | = vertical
bind - split-window -v
Memorable split: - = horizontal
set -g focus-events on
Pass focus events to programs

Plugins & TPM

10
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Install the plugin manager
set -g @plugin 'tmux-plugins/tpm'
Declare TPM in .tmux.conf
run '~/.tmux/plugins/tpm/tpm'
MUST be the last config line
Prefix I
Install newly declared plugins
Prefix U
Update installed plugins
Prefix Alt+u
Remove undeclared plugins
@plugin 'tmux-plugins/tmux-resurrect'
Save/restore sessions across reboots
@plugin 'tmux-plugins/tmux-continuum'
Auto-save sessions periodically
@plugin 'tmux-plugins/tmux-yank'
Copy to the system clipboard
@plugin 'tmux-plugins/tmux-sensible'
Sane defaults everyone agrees on

Sharing & pairing

8
tmux -S /tmp/pair new -s pair
Session on a shared socket file
chmod 777 /tmp/pair
Let the partner access the socket
tmux -S /tmp/pair attach
Partner attaches to the socket
tmux attach -t work -r
Attach read-only (view, no typing)
Two clients, one session
Both mirror the same window
tmux new -s me -t work
Grouped session: independent windows
ssh user@host -t tmux new -As dev
SSH straight into a tmux session
setw -g aggressive-resize on
Size to the active client, not min

Scripting from the shell

10
tmux new -d -s job 'npm run build'
Run a command in a detached session
tmux send-keys -t job 'ls -la' Enter
Type into a session remotely
tmux send-keys -t job C-c
Send Ctrl+C to stop a process
tmux has-session -t job 2>/dev/null && echo up
Check if a session exists
tmux capture-pane -t job -p
Print a pane's output to stdout
tmux split-window -t job -h 'htop'
Split and run a command in it
tmux select-window -t job:2
Target session:window from scripts
tmux display-message -p '#S'
Print the current session name
tmux list-panes -a
List every pane on the server
tmux wait-for done
Block until a signal is fired

Status bar

10
set -g status off
Hide the status bar entirely
set -g status-position top
Move the bar to the top
set -g status-style bg=black,fg=white
Bar colors
set -g status-left '[#S] '
Show the session name on the left
set -g status-right '%H:%M %d-%b'
Clock and date on the right
set -g status-interval 5
Refresh the bar every 5 seconds
setw -g window-status-current-style fg=green
Highlight the active window
#S #I #W #P #H
Session, window idx/name, pane, host
#(uptime | cut -d, -f1)
Embed shell output in the bar
set -g status-justify centre
Center the window list

Troubleshooting

10
tmux -V
Show the tmux version
tmux info
Dump server, client and terminal info
tmux show-options -g
List all global option values
Config changes not applied
.tmux.conf loads at server start only
Prefix : source-file ~/.tmux.conf
Reload config without restarting
"sessions should be nested with care"
You ran tmux inside tmux ($TMUX set)
TERM=xterm-256color tmux
Fix wrong/missing colors outside
Esc feels laggy in vim
Set escape-time 0 (see config)
tmux kill-server
Last resort: full clean restart
Sessions gone after reboot
Server is not persistent; use resurrect

“:q”와 일치하는 항목이 없습니다.


tmux 치트시트 소개

이 tmux 치트시트는 키 바인딩과 명령어를 검색 가능한 한 페이지에 모았습니다: 세션, 윈도우, 페인, 카피 모드와 스크롤, prefix 키와 재설정, 명령 모드, 필수 설정, 플러그인과 TPM, 공유와 페어링, 셸에서의 스크립팅, 상태 표시줄, 문제 해결까지 다룹니다.

tmux는 거의 전적으로 하나의 prefix 키에 기반한 근육 기억으로 이루어져 있으므로, 이 시트는 각 바인딩을 prefix와 키의 조합으로 보여주며, 세션을 직접 조작하지 않고 스크립트로 다룰 때 유용한 동등한 셸 명령어가 있으면 함께 보여줍니다.

이 그룹의 다른 치트시트와 마찬가지로 무료이며 클라이언트 측에서 동작합니다: 검색창으로 실시간으로 행을 필터링하고, 고정된 목차로 섹션을 이동하고, 클릭 한 번으로 명령어를 복사하고, 터미널 옆에서 참고할 수 있도록 페이지를 인쇄할 수 있습니다.

tmux 치트시트 사용 방법

  1. 시트를 열고 세션과 윈도우부터 문제 해결까지 섹션을 검토하세요.
  2. split, detach, copy 같은 키워드를 검색해 모든 행을 실시간으로 필터링하세요.
  3. prefix나 페인 바인딩을 바꾸고 싶을 때는 필수 설정 섹션으로 이동하세요.
  4. 명령어나 복사 아이콘을 클릭해 터미널이나 .tmux.conf에 바로 복사하세요.
  5. 전체 tmux 참고자료를 종이로 보려면 인쇄를 사용하세요.

자주 묻는 질문

12개 섹션입니다: 세션, 윈도우, 페인, 카피 모드와 스크롤, prefix 키와 재설정, 명령 모드, 필수 설정, 플러그인과 TPM, 공유와 페어링, 셸 스크립팅, 상태 표시줄, 문제 해결입니다.

Ctrl-b입니다. prefix 섹션에서 모든 바인딩을 이를 기준으로 보여주고, Ctrl-a로 재설정하고 싶다면 .tmux.conf에 넣을 줄도 제공합니다.

카피 모드 섹션에서 카피 모드 진입, 그 안에서 이동과 검색, 선택 시작과 종료, 버퍼 붙여넣기를 emacs와 vi 키 모드 모두에서 다룹니다.

네. 어떤 행이든 클릭하거나 복사 아이콘을 클릭하면 바로 명령어가 복사됩니다.

네, 완전히 무료이며 로그인 없이 브라우저에서 실행됩니다.


인기 검색어
tmux 치트시트 tmux 명령어 tmux 단축키 tmux 화면 분할 tmux 카피 모드 tmux 설정 예시 tmux 세션 명령어
도움이 필요하신가요?
이 도구에서 문제를 발견하셨나요? 저희 팀에 알려주세요.
문제 신고

이 무료 도구를 귀하의 웹사이트에 추가하세요: 아래 코드를 복사하여 붙여넣으세요.