리눅스 wget 이어받기

(Wget 이어받기에서 넘어옴)

1 개요[ | ]

How to resume partially downloaded files in Linux with wget
Resume an interrupted download when using Wget
wget 이어받기
  • -c 옵션을 붙이면 이어받기 가능

2 실습[ | ]

  • 다운로드 도중 Ctrl+C를 눌러 중단
root@zetawiki:~# wget http://ftp.kaist.ac.kr/CentOS/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1511.iso
... (생략)
HTTP request sent, awaiting response... 200 OK
Length: 394264576 (376M) [application/x-iso9660-image]
Saving to: ‘CentOS-7-x86_64-NetInstall-1511.iso’

10% [=====>                                                       ] 40,536,192  12.7MB/s  eta 27s
^C
  • -c 옵션을 넣어 이어받기
root@zetawiki:~# wget -c http://ftp.kaist.ac.kr/CentOS/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1511.iso
... (생략)
HTTP request sent, awaiting response... 206 Partial Content
Length: 394264576 (376M), 352084408 (336M) remaining [application/x-iso9660-image]
Saving to: ‘CentOS-7-x86_64-NetInstall-1511.iso’

100%[++++++======================================================>] 394,264,576 19.1MB/s   in 18s    

2015-12-15 13:07:21 (18.8 MB/s) - ‘CentOS-7-x86_64-NetInstall-1511.iso’ saved [394264576/394264576]
→ 이미 받은 부분은 ++++로 표시됨
  • 해시값으로 원본과 동일한지 확인
root@zetawiki:~# md5sum CentOS-7-x86_64-NetInstall-1511.iso
99d305fa40ec9e28ef8450c3bcc45f85  CentOS-7-x86_64-NetInstall-1511.iso
root@zetawiki:~# curl -s http://ftp.kaist.ac.kr/CentOS/7/isos/x86_64/md5sum.txt | grep CentOS-7-x86_64-NetInstall-1511.iso
99d305fa40ec9e28ef8450c3bcc45f85  CentOS-7-x86_64-NetInstall-1511.iso

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}