도전2022

wget으로 ftp 다운받자. 본문

작업/리눅스

wget으로 ftp 다운받자.

hotdigi 2010. 5. 11. 16:14
인터넷을 검색해보았는데, 잘 안되더군요.
조금 오래 찾고 wget에서 help도 해보고 몇차래 시도 끝에 성공.ㅋㅋ.
간단한것도 직접 하려니, 시간이 많이 걸리네.ㅠ.ㅠ 


wget 사용법은 다음과 같다. 

인터넷 파일 다운로드
wget http://linux.co.kr/images/linetwork1.gif 


ftp인 경우에는 사용자의 패스워드를 넣을 수 있는 것이 필요한데 
wget에서는 다음의 옵션을 제공한다. 


FTP options:
       --ftp-user=USER         set ftp user to USER.
       --ftp-password=PASS     set ftp password to PASS.
       --no-remove-listing     don't remove `.listing' files.
       --no-glob               turn off FTP file name globbing.
       --no-passive-ftp        disable the "passive" transfer mode.
       --retr-symlinks         when recursing, get linked-to files (not dir).
       --preserve-permissions  preserve remote file permissions.


그래서, 다음과 같이 명령을 사용하면 된다.

# wget ftp://user-id@ftp.xxx.co.kr/xxx/xxx.tar.gz --ftp-password=xxxxxx




'작업 > 리눅스' 카테고리의 다른 글

리눅스에서 압축 관리  (0) 2010.06.03
MinGW 설정  (0) 2010.05.25
시스템 콜 관련  (0) 2010.05.03
LINUX System Call Quick Reference  (0) 2010.04.06
Embedded Linux Graphics Quick Reference Guide  (0) 2010.04.02