Claude Code 101로 돌아가기Back to Claude Code 101
사전 준비 모듈Pre-requisite Module

터미널
처음이라면
New to the
Terminal?

비개발자를 위한 첫 걸음 안내서,
컴퓨터와 대화하는 법을 배워봅시다
A beginner's guide for non-developers —
learn how to communicate with your computer

터미널이 뭐야?What is a terminal? 명령어 배우기 →Learn commands →
스크롤Scroll
01

터미널이란?

한 줄 요약: 컴퓨터에게 글자로 명령을 내리는 도구입니다.

What is a Terminal?

In one line: a tool for giving your computer instructions in text.

카페 키오스크 비유로 이해하기

카페에서 주문하는 두 가지 방법을 떠올려보세요.

  🖱️ GUI (키오스크 터치) → 화면에서 "아메리카노" 버튼을 누르고, "ICE" 버튼을 누르고, "결제" 버튼을 누른다
  ⌨️ CLI (점원에게 말로 주문) → "아이스 아메리카노 한 잔이요"라고 한마디면 끝

터미널 = 컴퓨터라는 카페의 점원입니다.
마우스로 이것저것 클릭하는 대신, 텍스트로 "이거 해줘"라고 말하면 컴퓨터가 바로 실행합니다. 처음에는 낯설지만, 익숙해지면 마우스보다 훨씬 빠르고 정확합니다.

Think of it like ordering at a coffee shop

Imagine two ways to order at a cafe:

  🖱️ GUI (touchscreen kiosk) → tap "Americano", tap "Iced", tap "Pay"
  ⌨️ CLI (telling the barista) → just say "one iced Americano, please"

The terminal is your computer's barista.
Instead of clicking around with your mouse, you type "do this" and the computer acts immediately. It feels unfamiliar at first, but once you get the hang of it, it's far faster and more precise than a mouse.

⌨️

텍스트 기반 인터페이스

터미널은 글자만으로 컴퓨터와 소통하는 창입니다. 버튼이나 아이콘 대신, 명령어를 타이핑하면 컴퓨터가 결과를 텍스트로 보여줍니다. 마치 문자 메시지를 주고받는 것과 비슷합니다.

Text-based interface

The terminal is a window where you communicate with your computer purely through text. Instead of buttons and icons, you type commands and the computer responds with text — much like exchanging messages.

🛠️

개발자의 기본 도구

프로그래머들은 매일 터미널을 씁니다. 코드 실행, 파일 관리, 서버 접속, 패키지 설치 등 거의 모든 개발 작업이 터미널에서 시작됩니다. 개발의 "출입문"이라고 생각하면 됩니다.

The developer's essential tool

Programmers use the terminal every single day. Running code, managing files, connecting to servers, installing packages — nearly every development task starts here. Think of it as the "front door" to software development.

🤖

왜 Claude Code에 필요한가

Claude Code는 터미널에서 실행되는 AI 도구입니다. "claude"라고 타이핑해서 시작하고, 대화도 터미널 안에서 진행됩니다. 터미널 기초만 알면 Claude Code를 바로 쓸 수 있습니다.

Why you need it for Claude Code

Claude Code is an AI tool that runs inside the terminal. You start it by typing "claude", and all your conversations happen right there. If you know the terminal basics, you're ready to use Claude Code immediately.

터미널은 어떻게 작동하나요?

터미널의 작동 원리는 매우 단순합니다:

1. 사용자가 명령어를 입력한다 (예: ls)
2. Enter를 누른다
3. 컴퓨터가 명령을 실행하고 결과를 보여준다
4. 다시 입력을 기다린다

이 과정의 반복입니다. 마치 카카오톡에서 메시지를 보내고 답장을 받는 것처럼, 명령을 보내고 결과를 받는 "대화"를 하는 겁니다.

How does the terminal work?

The principle is beautifully simple:

1. You type a command (e.g., ls)
2. Press Enter
3. The computer runs the command and shows the result
4. It waits for your next input

Repeat. It's a back-and-forth "conversation" — you send a command and receive a result, just like exchanging messages in a chat app.

02

터미널 여는 법

운영체제마다 터미널을 여는 방법이 조금 다릅니다. 아래에서 자신의 OS를 찾아보세요.

How to Open a Terminal

The method varies slightly by operating system. Find yours below.

🍎 macOS
방법 1: Spotlight Cmd + Space 누르기 → "터미널" 입력 → Enter 방법 2: Finder 응용 프로그램 → 유틸리티 → 터미널.app
Option 1: Spotlight Press Cmd + Space → Type "Terminal" → Press Enter Option 2: Finder Applications → Utilities → Terminal.app
🪟 Windows
방법 1: 검색 시작 메뉴 클릭 → "PowerShell" 검색 → Enter 방법 2: 단축키 Win + X 누르기 → "터미널" 선택
Option 1: Search Click Start menu → Search "PowerShell" → Press Enter Option 2: Shortcut Press Win + X → Select "Terminal"
🐧 Linux
단축키 한 방! Ctrl + Alt + T 바로 터미널이 열립니다. 대부분의 Linux 배포판에서 이 단축키가 작동합니다.
One shortcut to rule them all! Ctrl + Alt + T The terminal opens immediately. This shortcut works in most Linux distributions.
💜
처음 보는 검은 화면이 무서워도 괜찮습니다. 터미널은 그냥 텍스트 입력창일 뿐입니다. 잘못 입력해도 대부분 "그런 명령어 없어"라고 알려주기만 하고, 컴퓨터가 망가지는 일은 거의 없습니다. 편하게 이것저것 입력해보세요. Don't worry if the black screen looks intimidating. The terminal is just a text input window. If you type something wrong, it usually just says "command not found" — your computer almost never breaks from a typo. Feel free to experiment.
터미널을 열면 보이는 화면What you see when you open a terminal
# 이런 식으로 생긴 화면이 나타납니다A screen like this will appear username@computer ~ $ # ↑ 여기에 커서가 깜빡이고 있습니다Your cursor is blinking here # ↑ 이 "$" 또는 "%" 뒤에 명령어를 입력하면 됩니다Type your command after this "$" or "%" symbol # ↑ "username"은 여러분의 컴퓨터 사용자 이름입니다"username" is your computer's user name
03

필수 명령어 5개

이 5개만 알면 터미널의 기본은 끝입니다. 하나씩 천천히 따라해보세요.

5 Essential Commands

These five commands are all you need to get started. Work through them one by one.

명령어Command 하는 일What it does 비유Analogy 예시Example
pwd 현재 위치 확인Show current location "지금 내가 어디에 있지?" 라고 물어보기Asking "Where am I right now?" pwd → /Users/hyunho
ls 폴더 내용 보기List folder contents 서랍을 열어서 안에 뭐가 있는지 보기Opening a drawer to see what's inside ls → Documents Photos Music ...
cd 폴더 이동Change directory 다른 방으로 걸어가기Walking into another room cd DocumentsDocuments 폴더로 이동move to Documents
mkdir 새 폴더 만들기Create a new folder 새 서랍 추가하기Adding a new drawer mkdir my-projectmy-project 폴더 생성creates my-project folder
clear 화면 지우기Clear the screen 칠판을 깨끗하게 지우기Erasing a whiteboard clear화면이 깨끗해짐screen is cleared
실전 예시: 명령어 따라해보기Hands-on example: follow along
# 1. 현재 위치 확인Check current location $ pwd /Users/hyunho # 2. 현재 폴더에 뭐가 있는지 확인See what's in the current folder $ ls Desktop Documents Downloads Music Pictures # 3. Documents 폴더로 이동Navigate to the Documents folder $ cd Documents # 4. 이동했는지 확인Verify you moved there $ pwd /Users/hyunho/Documents # 5. 새 폴더 만들기Create a new folder $ mkdir my-first-project # 6. 만든 폴더로 이동Move into the new folder $ cd my-first-project # 7. 화면 정리하기Clean up the screen $ clear
💡
꿀팁: 명령어를 입력하다가 Tab 키를 누르면 자동완성이 됩니다. 예를 들어 cd Doc까지 입력하고 Tab을 누르면 cd Documents로 완성됩니다. 또한 위쪽 화살표()를 누르면 이전에 입력한 명령어가 다시 나타납니다. Pro tip: Press Tab while typing a command to autocomplete it. For example, type cd Doc and press Tab — it completes to cd Documents. Press the up arrow () to recall your previous commands.
04

파일 시스템 이해하기

컴퓨터의 파일과 폴더가 어떻게 정리되어 있는지 알면, 터미널에서 길을 잃지 않습니다.

Understanding the File System

Understanding how your computer's files and folders are organized will keep you from getting lost in the terminal.

컴퓨터의 폴더 구조 (트리)Folder structure (tree view)
/ (최상위 폴더, 루트라고 부릅니다top-level folder, called the root) ├── Users/ │ └── hyunho/ 여러분의 홈 폴더 (~)your home folder (~) │ ├── Desktop/ 바탕화면Desktop │ ├── Documents/ 문서Documents │ │ └── my-project/ 우리가 만든 폴더!the folder we created! │ │ ├── index.html │ │ └── style.css │ ├── Downloads/ 다운로드Downloads │ └── Music/ 음악Music ├── Applications/ 설치된 앱들installed apps └── System/ 시스템 파일 (건드리지 마세요!)system files (don't touch!)

서랍장 비유로 이해하기

파일 시스템은 거대한 서랍장과 같습니다.

최상위 폴더 (/) = 서랍장 자체. 모든 것이 여기 안에 있습니다.
하위 폴더 = 서랍장의 각 서랍칸. Documents, Downloads 같은 폴더들이죠.
파일 = 서랍칸 안에 들어있는 물건들. index.html, photo.jpg 같은 것들입니다.

터미널에서 cd 명령어는 "다른 서랍칸을 열겠다"는 뜻이고, ls는 "이 서랍칸 안에 뭐가 있지?"라고 확인하는 것입니다.

Think of it as a chest of drawers

The file system is like a giant chest of drawers.

Root folder (/) = the chest itself. Everything lives inside it.
Subfolders = individual drawers. Folders like Documents and Downloads.
Files = the items inside each drawer. Things like index.html or photo.jpg.

In the terminal, cd means "open a different drawer", and ls means "what's inside this drawer?".

절대 경로 vs 상대 경로Absolute paths vs relative paths

📍 절대 경로 (전체 주소)Absolute path (full address)
"서울시 강남구 역삼동 123번지" "123 Main Street, Springfield" /Users/hyunho/Documents/my-project → 어디에 있든 정확한 위치를 가리킴 → 항상 /(슬래시)로 시작 → Points to the exact location from anywhere → Always starts with / (slash)
🧭 상대 경로 (현재 위치 기준)Relative path (from current location)
"여기서 오른쪽으로 두 블록" "Two blocks to the right from here" ./my-project (현재 폴더의 my-project)(my-project in current folder) .. (한 단계 상위 폴더)(one level up) ../Music (상위 폴더의 Music)(Music in parent folder) → 현재 위치에 따라 도착지가 달라짐 → Destination depends on where you are now
🏠
홈 폴더 단축키: ~ (물결표)는 여러분의 홈 폴더를 의미합니다. 어디에 있든 cd ~를 입력하면 홈 폴더로 돌아갑니다. cd ~/Documents는 홈 폴더 안의 Documents로 바로 이동합니다. Home folder shortcut: ~ (tilde) represents your home folder. No matter where you are, typing cd ~ takes you straight back home. cd ~/Documents goes directly to the Documents folder inside your home.
05

개발 환경 설치

Claude Code를 사용하려면 몇 가지 도구를 먼저 설치해야 합니다. 터미널에서 하나씩 따라해보세요.

Setting Up Your Dev Environment

A few tools need to be installed before you can use Claude Code. Follow along in your terminal, one step at a time.

1

Homebrew 설치 (macOS)

Homebrew는 macOS의 "앱 스토어 터미널 버전"입니다. 개발 도구를 쉽게 설치하고 관리할 수 있게 해줍니다.

Install Homebrew (macOS)

Homebrew is the "App Store for the terminal" on macOS. It makes installing and managing developer tools easy.

macOS 터미널Terminal
# Homebrew 설치 (이 한 줄을 복사해서 붙여넣고 Enter)Install Homebrew (copy this line, paste it, and press Enter) /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # 설치가 끝나면 확인Verify the installation brew --version Homebrew 4.x.x 이런 식으로 나오면 성공!if you see this, you're good!
🪟
Windows 사용자: Homebrew 대신 winget이 기본 내장되어 있습니다. 또는 nodejs.org에서 직접 다운로드해도 됩니다. Windows users: winget is built in — no Homebrew needed. You can also download directly from nodejs.org.
2

Node.js 설치

Node.js는 JavaScript를 실행할 수 있게 해주는 프로그램입니다. Claude Code가 이것 위에서 작동합니다.

Install Node.js

Node.js is the runtime that lets your computer run JavaScript. Claude Code is built on top of it.

macOS 터미널Terminal
# macOS: Homebrew로 Node.js 설치Install Node.js via Homebrew brew install node
Windows PowerShell
# Windows: winget으로 Node.js 설치Install Node.js via winget winget install OpenJS.NodeJS.LTS
3

설치 확인

모든 것이 잘 설치되었는지 확인합니다. 아래 명령어를 하나씩 입력해보세요.

Verify installation

Confirm that everything installed correctly. Enter these commands one by one.

설치 확인Verify installation
# Node.js 버전 확인Check Node.js version $ node --version v20.x.x 숫자가 나오면 성공!if you see a version number, you're good! # npm (Node 패키지 매니저) 확인package manager) check $ npm --version 10.x.x 이것도 숫자가 나오면 OKsame here — any version number means OK # 이제 Claude Code를 설치할 수 있습니다!Now you can install Claude Code! $ npm install -g @anthropic-ai/claude-code
🎉
축하합니다! 여기까지 했다면 개발 환경 설정은 끝입니다. 이제 Claude Code를 설치하고 사용할 준비가 되었습니다. 다음 챕터에서 Claude Code가 무엇인지 자세히 알아보겠습니다. Congratulations! Your dev environment is set up. You're now ready to install and use Claude Code. The next chapter will walk you through what Claude Code actually is.
06

Claude Code CLI 플래그

터미널에서 claude 명령어를 실행할 때 사용하는 주요 플래그들입니다. 공식 CLI 레퍼런스 기준 최신 내용입니다.

Claude Code CLI Flags

The key flags you can use when running the claude command in your terminal. Based on the official CLI reference.

기본 실행 방법Basic usage
# 대화형 세션 시작 (가장 기본)Start an interactive session (most basic) claude # 초기 프롬프트와 함께 대화형 세션 시작Start with an initial prompt claude "이 프로젝트를 설명해줘explain this project" # 출력 모드 (비대화형, 파이프 전용)Print mode (non-interactive, for piping) claude -p "이 함수를 설명해줘explain this function" # 마지막 세션 이어서 시작Resume the most recent session claude --continue # 세션 목록에서 선택해서 재개Pick a session to resume from a list claude --resume # 세션을 분기(포크)해서 재개Resume and fork the session claude --continue --fork-session # ID 또는 이름으로 특정 세션 재개Resume a specific session by ID or name claude -r "auth-refactor" "이 PR 마무리해줘finish this PR"
모델 및 도구 제어Model and tool control
# 사용할 모델 지정Specify the model to use claude --model claude-sonnet-4-6 # 별칭으로도 지정 가능 (sonnet, opus)Or use an alias (sonnet, opus) claude --model sonnet # 추가 작업 디렉토리 지정Add an extra working directory claude --add-dir /path/to/other/project # 허용할 도구만 지정 (권한 프롬프트 없이 실행)Allow specific tools (no permission prompt) claude --allowedTools "Bash,Read" # 특정 도구 차단Block specific tools claude --disallowedTools "Write" # 사용 가능한 도구를 제한 (명명된 도구만)Restrict to specific named tools claude --tools "Bash,Edit,Read"
서브에이전트(Subagent) 정의Defining subagents
# --agents 플래그로 세션 전용 서브에이전트 정의 claude --agents '{ "code-reviewer": { "description": "코드 변경 후 자동으로 리뷰", "prompt": "당신은 시니어 코드 리뷰어입니다. 코드 품질, 보안, 베스트 프랙티스에 집중하세요.", "tools": ["Read", "Grep", "Glob", "Bash"], "model": "sonnet" }, "debugger": { "description": "오류 및 테스트 실패 디버깅 전문가", "prompt": "당신은 전문 디버거입니다. 오류를 분석하고 근본 원인을 파악해서 수정안을 제시하세요." } }'
시스템 프롬프트 커스터마이징Customizing the system prompt
# 기본 시스템 프롬프트에 지침 추가 (권장)Append instructions to the default system prompt (recommended) claude --append-system-prompt "항상 TypeScript를 사용해줘always use TypeScript" # 전체 시스템 프롬프트를 교체 (고급 사용)Replace the entire system prompt (advanced) claude --system-prompt "당신은 Python 전문가입니다You are a Python expert" # 파일에서 시스템 프롬프트 로드 (인쇄 모드만)Load system prompt from file (print mode only) claude -p --system-prompt-file ./prompts/code-review.txt "이 PR 리뷰해줘review this PR"
출력 형식 및 자동화Output format and automation
# JSON 형식으로 출력 (스크립팅에 유용)Output in JSON format (useful for scripting) claude -p "쿼리query" --output-format json # 스트리밍 JSON 출력Streaming JSON output claude -p "쿼리query" --output-format stream-json # 최대 에이전트 턴 수 제한 (인쇄 모드)Limit the number of agent turns (print mode) claude -p --max-turns 5 "쿼리query" # 최대 예산 설정 (인쇄 모드)Set a maximum budget (print mode) claude -p --max-budget-usd 5.00 "쿼리query" # 기본 모델 과부하 시 폴백 모델 지정 (인쇄 모드)Specify a fallback model if the primary is overloaded (print mode) claude -p --fallback-model sonnet "쿼리query"
플래그Flag 설명Description 모드Mode
--continue, -c 현재 디렉토리에서 가장 최근 대화 로드Load the most recent conversation in the current directory 전체All
--resume, -r ID 또는 이름으로 특정 세션 재개, 또는 선택기 표시Resume a specific session by ID or name, or show the session picker 전체All
--fork-session --resume 또는 --continue 시 새 세션 ID 생성 (분기)Create a new session ID when using --resume or --continue (fork) 전체All
--model 모델 지정 (sonnet, opus, claude-sonnet-4-6 등)Specify the model (sonnet, opus, claude-sonnet-4-6, etc.) 전체All
--add-dir Claude가 접근할 추가 작업 디렉토리 추가Add an extra working directory for Claude to access 전체All
--allowedTools 권한 프롬프트 없이 실행할 도구 지정Specify tools to run without a permission prompt 전체All
--disallowedTools 모델의 컨텍스트에서 제거하고 사용 금지할 도구Remove tools from the model's context and prevent their use 전체All
--tools Claude가 사용할 수 있는 내장 도구 제한Restrict which built-in tools Claude can use 전체All
--agents JSON으로 세션 전용 서브에이전트 동적 정의Dynamically define session-scoped subagents as JSON 전체All
--print, -p 대화형 모드 없이 응답 출력 (파이프·자동화 용도)Print the response without entering interactive mode (for piping and automation) 인쇄 모드Print mode
--output-format 출력 형식 지정: text, json, stream-jsonSet output format: text, json, or stream-json 인쇄 모드Print mode
--max-turns 에이전트 턴 수 제한 (기본값: 무제한)Limit the number of agent turns (default: unlimited) 인쇄 모드Print mode
--max-budget-usd 중지하기 전에 소비할 최대 API 예산 (달러)Maximum API budget in USD to spend before stopping 인쇄 모드Print mode
--system-prompt 전체 시스템 프롬프트를 사용자 정의 텍스트로 교체Replace the entire system prompt with custom text 전체All
--append-system-prompt 기본 시스템 프롬프트 끝에 텍스트 추가Append text to the end of the default system prompt 전체All
--permission-mode 지정된 권한 모드로 시작 (예: plan)Start in a specified permission mode (e.g., plan) 전체All
--mcp-config JSON 파일 또는 문자열에서 MCP 서버 로드Load MCP servers from a JSON file or string 전체All
--verbose 자세한 로깅 활성화 (디버깅에 유용)Enable verbose logging (useful for debugging) 전체All
--debug 디버그 모드 활성화, 카테고리 필터링 지원Enable debug mode with optional category filtering 전체All
--version, -v 버전 번호 출력Print the version number 전체All
--worktree, -w 격리된 git worktree에서 Claude 시작Start Claude in an isolated git worktree 전체All
--remote claude.ai에서 새 웹 세션 생성Create a new web session on claude.ai 전체All
--dangerously-skip-permissions 모든 권한 프롬프트 건너뜀 (주의해서 사용)Skip all permission prompts (use with caution) 전체All
💡
팁: --output-format json 플래그는 스크립팅 및 자동화에 특히 유용합니다. Claude의 응답을 프로그래밍 방식으로 파싱할 수 있습니다.
Tip: The --output-format json flag is especially useful for scripting and automation. It allows you to programmatically parse Claude's responses.
07

내장 슬래시 명령어Built-in Slash Commands

Claude Code 세션 안에서 /를 입력하면 사용 가능한 모든 명령어가 표시됩니다. 아래는 주요 내장 명령어 목록입니다. Type / inside a Claude Code session to display all available commands. Below is a list of the main built-in commands.

ℹ️
사용 방법: Claude Code 세션 안에서 /를 입력하면 자동완성 목록이 나타납니다. / 뒤에 문자를 입력하면 필터링됩니다. 모든 명령어가 모든 사용자에게 표시되는 것은 아닙니다. 일부는 플랫폼, 요금제 또는 환경에 따라 다릅니다.
How to use: Type / inside a Claude Code session to bring up the autocomplete list. Typing characters after / filters the results. Not all commands are visible to all users — some depend on platform, plan, or environment.
명령어Command 설명Description
/help 도움말 및 사용 가능한 명령어 표시Show help and available commands
/init CLAUDE.md 가이드로 프로젝트 초기화Initialize a project with a CLAUDE.md guide
/memory CLAUDE.md 메모리 파일 편집, 자동 메모리 활성화/비활성화Edit CLAUDE.md memory files, toggle auto-memory on/off
/model [model] AI 모델 선택 또는 변경 (즉시 적용)Select or change the AI model (takes effect immediately)
/compact [instructions] 선택적 포커스 지침으로 대화 압축Compact the conversation with optional focus instructions
/context 현재 컨텍스트 사용량을 색상 그리드로 시각화Visualize current context usage as a color grid
/agents 서브에이전트(subagent) 구성 관리Manage subagent configuration
/fast [on|off] 빠른 모드(Fast Mode) 켜기 또는 끄기Toggle Fast Mode on or off
/permissions 도구 권한 보기 또는 업데이트 (별칭: /allowed-tools)View or update tool permissions (alias: /allowed-tools)
/doctor Claude Code 설치 및 설정 진단 및 확인Diagnose and verify Claude Code installation and configuration
/mcp MCP 서버 연결 및 OAuth 인증 관리Manage MCP server connections and OAuth authentication
/clear 대화 기록을 지우고 컨텍스트 해제 (별칭: /reset, /new)Clear conversation history and release context (alias: /reset, /new)
/cost 토큰 사용 통계 및 세션 비용 표시Show token usage statistics and session cost
/exit CLI 종료 (별칭: /quit)Exit the CLI (alias: /quit)
/config 설정 인터페이스 열기 (별칭: /settings)Open the settings interface (alias: /settings)
/diff 커밋되지 않은 변경 사항 및 턴별 diff를 보여주는 대화형 diff 뷰어Interactive diff viewer showing uncommitted changes and per-turn diffs
/resume [session] ID 또는 이름으로 대화 재개 또는 세션 선택기 열기Resume a conversation by ID or name, or open the session picker
/fork [name] 현재 지점에서 대화 포크 생성Fork the conversation from the current point
/rewind 대화 및/또는 코드를 이전 지점으로 되돌리기 (별칭: /checkpoint)Rewind the conversation and/or code to a previous point (alias: /checkpoint)
/review 코드 품질, 보안 등에 대한 풀 리퀘스트 리뷰 (gh CLI 필요)Review a pull request for code quality, security, and more (requires gh CLI)
/security-review 현재 브랜치 변경 사항의 보안 취약점 분석Analyze current branch changes for security vulnerabilities
/plan 프롬프트에서 직접 Plan Mode 진입Enter Plan Mode directly from the prompt
/vim Vim 및 일반 편집 모드 간 토글Toggle between Vim and normal editing mode
/theme 색상 테마 변경Change the color theme
/skills 사용 가능한 skills 나열List available skills
/tasks 백그라운드 작업 나열 및 관리List and manage background tasks
/hooks hook 구성 관리 (도구 이벤트용)Manage hook configuration (for tool events)
/add-dir <path> 현재 세션에 새 작업 디렉토리 추가Add a new working directory to the current session
/pr-comments [PR] GitHub 풀 리퀘스트 댓글 가져오기 (gh CLI 필요)Fetch GitHub pull request comments (requires gh CLI)
/export [filename] 현재 대화를 일반 텍스트로 내보내기Export the current conversation as plain text
/status 버전, 모델, 계정, 연결성 표시Show version, model, account, and connectivity status
/stats 일일 사용, 세션 기록, 연속 기록 및 모델 선호도 시각화Visualize daily usage, session history, streaks, and model preferences
/usage 요금제 사용 제한 및 속도 제한 상태 표시Show plan usage limits and rate limit status
/feedback [report] Claude Code에 대한 피드백 제출 (별칭: /bug)Submit feedback about Claude Code (alias: /bug)
/release-notes 전체 변경 로그 보기View the full changelog

빠른 입력 접두사Quick Input Prefixes

슬래시 명령어 외에도 Claude Code 입력창에서 특수 접두사를 사용할 수 있습니다:

/ → 명령어 또는 skill 실행
! → Claude를 거치지 않고 bash 명령 직접 실행, 실행 결과를 대화 컨텍스트에 추가
@ → 파일 경로 자동완성 트리거

In addition to slash commands, you can use special prefixes in the Claude Code input field:

/ → Run a command or skill
! → Run a bash command directly (bypassing Claude), result is added to conversation context
@ → Trigger file path autocomplete

08

파이프(Pipe) 활용Using Pipes

claude -p와 파이프(|)를 결합하면 터미널의 다른 명령어 출력을 Claude에게 바로 전달할 수 있습니다. 강력한 자동화 워크플로우를 만들 수 있는 기능입니다. Combining claude -p with pipes (|) lets you pass the output of other terminal commands directly to Claude. This enables powerful automated workflows.

파이프(|)란?What is a Pipe (|)?

파이프는 한 명령어의 출력을 다른 명령어의 입력으로 연결하는 터미널 기능입니다.

명령어A | 명령어B

명령어A의 결과가 자동으로 명령어B로 전달됩니다. claude -p는 비대화형 출력 모드이므로 파이프의 수신 측으로 완벽하게 작동합니다.

A pipe is a terminal feature that connects the output of one command to the input of another.

CommandA | CommandB

The result of CommandA is automatically passed to CommandB. Since claude -p is a non-interactive output mode, it works perfectly as the receiving end of a pipe.

실전 파이프 예시Practical Pipe Examples
# 서버 로그를 실시간으로 Claude에게 보내서 오류 감지Stream server logs to Claude in real time for error detection tail -f server.log | claude -p "오류가 보이면 알려줘Let me know if you see any errors" # 변경된 파일 목록을 Claude에게 전달해서 보안 리뷰Pass changed file list to Claude for a security review git diff main --name-only | claude -p "변경된 파일들의 보안 이슈를 검토해줘Review the changed files for security issues" # 코드 파일을 읽어서 설명 요청Read a code file and ask for an explanation cat app.py | claude -p "이 코드를 설명해줘Explain this code" # 새 문자열을 프랑스어로 번역해서 PR 생성Translate new strings to French and open a PR claude -p "새 문자열을 프랑스어로 번역하고 PR을 올려줘Translate the new strings to French and create a PR" # 로그 파일을 Claude에게 전달해서 분석Pass a log file to Claude for analysis cat logs.txt | claude -p "이 로그를 분석해서 문제를 찾아줘Analyze this log and find any problems" # 디렉토리 구조를 Claude에게 전달Pass directory structure to Claude find . -type f -name "*.ts" | claude -p "TypeScript 파일 목록을 보고 아키텍처를 설명해줘Look at the TypeScript file list and describe the architecture" # JSON 출력 형식으로 받아서 파싱Get JSON output format and parse it cat data.json | claude -p --output-format json "이 데이터를 요약해줘Summarize this data" | jq '.result'

자동화 스크립트에서 활용

CI/CD 파이프라인이나 쉘 스크립트 안에서 claude -p를 호출하면 AI 분석을 자동화된 워크플로우에 통합할 수 있습니다.

Using in Automation Scripts

Calling claude -p inside a CI/CD pipeline or shell script integrates AI analysis into your automated workflows.

#!/bin/bash # 배포 전 보안 체크 자동화Automate pre-deploy security check git diff HEAD~1 | claude -p \ --output-format json \ "보안 취약점이 있으면 JSON으로 리포트해줘Report any security vulnerabilities as JSON"
📊

JSON 출력으로 데이터 파싱

--output-format json을 사용하면 Claude의 응답을 다른 도구(jq 등)로 파싱해서 추가 처리할 수 있습니다.

Parsing Data with JSON Output

Using --output-format json lets you parse Claude's response with other tools like jq for further processing.

claude -p "쿼리query" \ --output-format json \ | jq '.result'
💡
핵심 차이: claude(인수 없음)는 대화형 세션을 시작하고, claude -p "..."는 응답만 출력하고 종료합니다. 파이프나 스크립트에서는 항상 -p 모드를 사용하세요.
Key difference: claude (no arguments) starts an interactive session, while claude -p "..." prints the response and exits. Always use -p mode in pipes or scripts.
09

터미널 최적화 팁Terminal Optimization Tips

Claude Code를 더 쾌적하게 사용하기 위한 터미널 앱 추천과 설정 팁입니다. Recommended terminal apps and configuration tips for a better Claude Code experience.

🍎

iTerm2 (macOS 추천)

macOS 기본 터미널보다 훨씬 강력한 무료 터미널 앱입니다. Claude Code와의 호환성이 뛰어납니다.

Option을 Meta로 설정

설정 → 프로필 → 키 → Left/Right Option 키를 "Esc+"로 설정하면 Alt+B, Alt+F 등 단축키를 사용할 수 있습니다.

iTerm2 (Recommended for macOS)

A free, much more powerful terminal app than the macOS default. Excellent compatibility with Claude Code.

Set Option as Meta

Go to Settings → Profiles → Keys → Set Left/Right Option key to "Esc+" to enable shortcuts like Alt+B and Alt+F.

Warp (macOS/Linux)

AI 기능이 내장된 현대적인 터미널입니다. 명령어 자동완성과 블록 단위 출력이 특징입니다.

AI 자동완성 내장

Shift+Enter 지원을 위해 Claude Code 안에서 /terminal-setup을 실행해서 키 바인딩을 설치하세요.

Warp (macOS/Linux)

A modern terminal with built-in AI features. Known for command autocomplete and block-based output.

Built-in AI autocomplete

Run /terminal-setup inside Claude Code to install key bindings for Shift+Enter support.

🪟

Windows Terminal (Windows 추천)

Microsoft가 만든 현대적인 Windows 터미널입니다. 여러 탭과 PowerShell, WSL을 동시에 사용할 수 있습니다.

탭 지원 WSL 통합

Microsoft Store에서 무료로 다운로드할 수 있습니다.

Windows Terminal (Recommended for Windows)

A modern Windows terminal built by Microsoft. Supports multiple tabs, PowerShell, and WSL simultaneously.

Tab support WSL integration

Available for free from the Microsoft Store.

Claude Code 인터랙티브 모드 키보드 단축키Claude Code Interactive Mode Keyboard Shortcuts

단축키Shortcut 설명Description
Ctrl+C 현재 입력 또는 생성 취소Cancel current input or generation
Ctrl+D Claude Code 세션 종료 (EOF)Exit Claude Code session (EOF)
Ctrl+G 기본 텍스트 편집기에서 프롬프트 열기Open the prompt in the default text editor
Ctrl+L 터미널 화면 지우기 (대화 기록 유지)Clear terminal screen (conversation history preserved)
Ctrl+O 상세 출력 토글Toggle verbose output
Ctrl+R 역방향 명령 기록 검색Reverse command history search
Ctrl+B bash 명령 및 에이전트를 백그라운드로 실행Run bash commands and agents in the background
Ctrl+T 작업 목록 토글Toggle task list
Esc + Esc 되돌리기 또는 요약 (코드/대화를 이전 지점으로 복원)Undo or summarize (restore code/conversation to a previous point)
Shift+Tab 권한 모드 토글 (자동 수락 ↔ Plan Mode ↔ 일반)Toggle permission mode (auto-accept ↔ Plan Mode ↔ normal)
Option+P (Alt+P) 프롬프트를 지우지 않고 모델 전환Switch model without clearing the prompt
\ + Enter 여러 줄 입력 (모든 터미널에서 작동)Multi-line input (works in all terminals)
Shift+Enter 여러 줄 입력 (iTerm2, WezTerm, Ghostty, Kitty 기본 지원)Multi-line input (natively supported in iTerm2, WezTerm, Ghostty, Kitty)
Option+Enter 여러 줄 입력 (macOS 기본값)Multi-line input (macOS default)
Up/Down 화살표Up/Down Arrow 명령 기록 탐색Navigate command history
ℹ️
Option/Alt 키 단축키 설정 (macOS): Alt+B, Alt+F 등의 단축키를 사용하려면 터미널에서 Option을 Meta로 설정해야 합니다.
  • iTerm2: 설정 → 프로필 → 키 → Left/Right Option 키를 "Esc+"로 설정
  • Terminal.app: 설정 → 프로필 → 키보드 → "Option을 Meta 키로 사용" 체크
  • VS Code: 설정 → 프로필 → 키 → Left/Right Option 키를 "Esc+"로 설정
Setting up Option/Alt key shortcuts (macOS): To use shortcuts like Alt+B and Alt+F, you need to set Option as Meta in your terminal.
  • iTerm2: Settings → Profiles → Keys → Set Left/Right Option key to "Esc+"
  • Terminal.app: Settings → Profiles → Keyboard → Check "Use Option as Meta key"
  • VS Code: Settings → Profiles → Keys → Set Left/Right Option key to "Esc+"
10

자주 묻는 질문Frequently Asked Questions

터미널을 처음 접하는 분들이 가장 많이 궁금해하는 것들 The most common questions from those new to the terminal

거의 같다고 보면 됩니다. 엄밀히 말하면 "터미널"은 텍스트 입출력 장치, "콘솔"은 컴퓨터에 직접 연결된 물리적 터미널, "셸(Shell)"은 명령어를 해석하는 프로그램을 의미합니다. 하지만 일상적으로는 셋 다 "글자로 명령을 내리는 검은 창"이라는 같은 의미로 사용됩니다. "터미널 열어", "콘솔 열어", "셸 열어" 모두 같은 뜻이라고 생각해도 무방합니다.
Pretty much, yes. Strictly speaking, a "terminal" is a text input/output device, a "console" is a physical terminal directly connected to a computer, and a "shell" is the program that interprets commands. But in everyday use, all three refer to the same "black window where you type commands." Saying "open the terminal," "open the console," or "open the shell" all mean the same thing.
거의 그럴 일이 없습니다. 존재하지 않는 명령어를 입력하면 "command not found"(명령어를 찾을 수 없음)라고 알려주고, 아무 일도 일어나지 않습니다. 진짜 위험한 명령어(예: 시스템 파일 삭제)는 보통 관리자 권한(sudo)을 요구하기 때문에, 비밀번호를 입력하지 않는 한 실행되지 않습니다. 그러니 편하게 이것저것 입력해보세요. 실수해도 괜찮습니다!
Almost never. If you type a command that doesn't exist, the terminal simply tells you "command not found" and nothing happens. Truly dangerous commands (like deleting system files) usually require administrator privileges (sudo), so they won't run unless you enter your password. Feel free to experiment — it's okay to make mistakes!
둘 다 "셸(Shell)"의 종류입니다. 셸은 여러분이 입력한 명령어를 해석해서 컴퓨터에게 전달하는 통역사 같은 프로그램입니다. bash(Bourne Again Shell)는 오래되고 널리 쓰이는 셸이고, zsh(Z Shell)는 bash를 개선한 최신 버전입니다. macOS는 2019년부터 zsh가 기본이고, Linux는 보통 bash가 기본입니다. 초보자 입장에서 둘의 차이는 거의 느끼기 어렵고, 이 가이드의 모든 명령어는 둘 다에서 동일하게 작동합니다.
Both are types of "shell." A shell is a program that acts like an interpreter, taking the commands you type and passing them to the computer. bash (Bourne Again Shell) is a well-established and widely-used shell, while zsh (Z Shell) is a modern version that improves on bash. macOS has used zsh as the default since 2019, and Linux typically defaults to bash. For beginners, the difference is barely noticeable, and all commands in this guide work the same in both.
크게 세 가지 이유가 있습니다.

1. 속도: 마우스로 폴더를 열고, 파일을 찾고, 클릭하는 동안 터미널에서는 한 줄 명령어로 끝납니다. 예를 들어 100개의 파일 이름을 한번에 바꾸려면? GUI에서는 하나씩 클릭해야 하지만, 터미널에서는 한 줄이면 됩니다.

2. 자동화: 터미널 명령어들을 스크립트 파일에 적어두면, 복잡한 작업을 버튼 하나로 자동 실행할 수 있습니다. 반복 작업이 사라지죠.

3. 정확한 제어: GUI에서는 제공하는 옵션만 쓸 수 있지만, 터미널에서는 프로그램의 모든 기능에 접근할 수 있습니다. 마치 자동 vs 수동 기어 차이와 비슷합니다.
There are three main reasons.

1. Speed: While you're clicking through folders and files with a mouse, the terminal lets you do it in a single command. Want to rename 100 files at once? In a GUI you'd click one by one — in the terminal, one line does it.

2. Automation: Write terminal commands into a script file and you can automate complex tasks with the press of a button. Repetitive work disappears.

3. Precise control: A GUI only gives you the options it provides, but the terminal gives you access to every feature of a program. It's similar to the difference between automatic and manual transmission.

요약하면 이겁니다

터미널 = 컴퓨터에게 글자로 명령을 내리는 도구
필수 명령어 = pwd, ls, cd, mkdir, clear
핵심 가치 = 빠르고 정확한 컴퓨터 제어

이제 터미널이 뭔지 알았으니, 다음 단계로 넘어가봅시다!
Claude Code가 뭔지 알아보러 가기 →

Here's the Summary

Terminal = a tool for giving commands to your computer in text
Essential commands = pwd, ls, cd, mkdir, clear
Core value = fast, precise computer control

Now that you know what a terminal is, let's move on to the next step!
Learn what Claude Code is →

다음: Claude Code가 뭔가요? →Next: What is Claude Code? →