[curl, wget] 다운로드 속도 조절하기 (limit download speed)
--limit-rate 옵션을 이용하면 다운로드 속도를 제어할 수 있다 (throttle download speed)
이 옵션은 curl, wget 둘 다 동일하게 지원한다.
아래는 100 Kb/sec 으로 제한하는 방법이다.
curl --limit-rate 100K
wget --limit-rate=100k
[curl, wget] 파일 일부분 다운로드 받기 (partial download)
HTTP header에 'Range' 를 넣어서 할 수 있다.
curl에서 --header 옵션으로 header값을 추가할 수 있다.
아래는 http://abc.com/aaa.txt 에서 앞부분 50k byte 정도만 다운로드 받아 aaa.5k.txt 로 저장하는 것이다.
curl --header "Range: bytes=0-50000" -o aaa.5k.txt http://abc.com/aaa.txt
'Cloud Computing > unix, sh, network' 카테고리의 다른 글
nginx 설정 (location, prefix match, regular expression match) (0) | 2016.06.28 |
---|---|
cpu, core, processor 정보 구하기 (0) | 2013.05.24 |
WRITTEN BY
- manager@
Data Analysis, Text/Knowledge Mining, Python, Cloud Computing, Platform
,