C.W.K.
Stream
Lesson 05 of 13 · published

wget

~10 min · wget, download, mirror

Level 0Pinger
0 XP0/101 lessons0/12 achievements
0/150 XP to next level150 XP to go0% complete

다운로드 전문가

curl 이 스위스 군용 칼이면 wget 은 낚싯대 — 파일 다운로드 전용. 두 킬러 기능 — 끊긴 다운로드 native resume (-c), 웹사이트 전체 재귀 mirror. macOS 디폴트 X 지만 brew 한 줄.

Code

다운로드 패턴·bash
# Install on macOS
brew install wget

# Simple download
wget https://example.com/file.tar.gz

# Save with a different filename
wget -O custom-name.tar.gz https://example.com/file.tar.gz

# Resume an interrupted download
wget -c https://example.com/large-file.iso

# Quiet (good in scripts)
wget -q https://example.com/file.tar.gz

# Mirror a documentation site
wget --mirror --convert-links --page-requisites \
     --no-parent https://example.com/docs/
wget vs curl 빠른 레퍼런스·plaintext
Task                    | Preferred
-------------------------+----------
Download one file        | wget (-c resumes natively)
API request              | curl (more flexible)
Mirror a site            | wget (built-in recursion)
Custom headers/methods   | curl
Resume interrupted DL    | both (wget -c, curl -C -)

External links

Exercise

macOS 에 wget 설치. 알려진 파일 다운로드 — wget https://speed.hetzner.de/100MB.bin. 중간 Ctrl+C 로 끊고, -c 와 함께 다시 실행 (wget -c https://...) — resume 봐. 비교 — curl -C - -O https://... 같은 거 시도. 둘 다 동작; wget 이 이 사용 사례에 약간 더 깔끔해.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.