빠른 참조

GNU Screen 터미널 다중화 및 세션 관리 치트시트

GNU Screen 터미널 다중화 퀵 가이드: 세션 생성, 분리(detach), 재연결(attach), 창 분할 및 핵심 단축키(Ctrl+a 계열).

· 게시일

Session Management

# Start a new named session
screen -S mysession

# List all existing screen sessions
screen -ls

# Reattach to a running session
screen -r mysession

# Reattach and detach it from other terminals (-d -r)
screen -d -r mysession

Keybindings (Default Prefix: Ctrl+A)

All Screen commands begin by pressing Ctrl+A:

Shortcut Action
Ctrl+A then d Detach from session (leaves processes running in background)
Ctrl+A then c Create a new window
Ctrl+A then n Switch to next window
Ctrl+A then p Switch to previous window
Ctrl+A then " List all windows to select interactively
Ctrl+A then k Kill current window
Ctrl+A then [ Enter scrollback / copy mode (Esc to exit)

Screen Splitting

Shortcut Action
Ctrl+A then S Split display horizontally
Ctrl+A then | Split display vertically
Ctrl+A then Tab Move focus to next split region
Ctrl+A then X Close current split region

References

관련 주제