로그인


글작성자 랭킹!

  • 1위. [레벨:13]id: 텅날개텅날개
    3771회
  • 2위. [레벨:3]id: 2인자범이2인자범이
    43회
  • 3위. [레벨:2]id: 송시송시
    10회
  • 4위. [레벨:1]id: 도너츠도너츠
    8회
  • 5위. [레벨:1]id: 돌핀돌핀
    5회


댓글 작성자 랭킹!

  • 1위. [레벨:13]id: 텅날개텅날개
    363회
  • 2위. [레벨:3]id: 2인자범이2인자범이
    36회
  • 3위. [레벨:1]id: 도너츠도너츠
    18회
  • 4위. [레벨:2]id: 송시송시
    12회
  • 5위. [레벨:1]id: 매맞는아이매맞는아이
    7회


방문자수

전체 : 204,570
오늘 : 458
어제 : 531

페이지뷰

전체 : 10,480,267
오늘 : 12,158
어제 : 12,967

free counters


2012.06.19 01:39

wget 완벽정리

댓글 0조회 수 1103추천 수 0
?

단축키

이전 문서

다음 문서

+ - Up Down Comment Print
?

단축키

이전 문서

다음 문서

+ - Up Down Comment Print

                          간단한 팁들
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
먼저 간단한 팁으로는 하위 디렉토리를 긁는 옵션으로는
wget -r 주소
이렇게 모든 하위 디렉의 파일을 긁어 올수가 있다.

nohup wget -nv http://take.somewhere.org/really.tar.gz &
ftp도 되고 아주 심플하게 조용히 받습니다.
wgetrc 파일을 편집해서 시도 회수라든가 다양한 조건을 설정하고 bash와
더불어 쓴다면 꽤나 멋지게? 다운을 하겠죠.

wget -c filename
이렇게 하다 끊기면 다시 위 명령을 내려주면 받은데 부터 다시...

wget 명령과 비슷한 일을 하는 또다른 유사한 명령어가 있습니다.
사용 방법은...
bash # nc www.yahoo.com 80 <-- 접속포트번호 꼭 지정!
GET /index.html

...
...

-------------------------------------
이런식으로 검색합니다.
또 다른 사용방법 (한번에 끝내기..)

bash # echo 'GET /index.html' | nc -w 3 www.yahoo.com 80 [ENTER]
이것을 응용하면 ftp든 wget이든 cgi_execute든지 간에 맘데로 할수 있습니다.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                              Wget 한글 메뉴얼제작  - by pbi12
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

GNU Wget 1.7, a non-interactive network retriever.
그누 Wget 1.7 버젼, 대화창없이 네트워크에서 자료를 찾아오는 리트리버(사냥개)

Usage: wget [OPTION]... [URL]...
사용법: wget을 쓴후에 옵션을 적고 난후에 URL을 적으세요.

Mandatory arguments to long options are mandatory for short options too.
필수적인 긴 옵션의 변수는 필수적인 짧은 옵션을 적는것과 같다.  <-- (맞는말인지 -_-a )

Startup:

  -V,  --version           display the version of Wget and exit.
                           Wget의 버젼을 보여주고 종료 합니다.

  -h,  --help              print this help.
                           도움말을 보여줍니다.

  -b,  --background        go to background after startup.
                           시작한 후에 백그라운드에서 작동합니다.

  -e,  --execute=COMMAND   execute a `.wgetrc'-style command.
                           .wgetrc 라는 스타일의 명령을 실행합니다.


Logging and input file:

  -o,  --output-file=FILE     log messages to FILE.
                              메세지들을 파일로 남깁니다.

  -a,  --append-output=FILE   append messages to FILE.
                              메세지를 파일에 추가합니다.

  -d,  --debug                print debug output.
                              디버그 내용을 보여줍니다.

  -q,  --quiet                quiet (no output).
                              출력없이 종료함.

  -v,  --verbose              be verbose (this is the default).
                              다양함. 기본값입니다.

  -nv, --non-verbose          turn off verboseness, without being quiet.
                              기본옵션을 제거한다.

  -i,  --input-file=FILE      download URLs found in FILE.
                              다운받을 URL주소를 파일에서 찾습니다.

  -F,  --force-html           treat input file as HTML.
                              HTML 과 같은 파일을 입력값으로 취급합니다.

  -B,  --base=URL             prepends URL to relative links in -F -i file.
       --sslcertfile=FILE     optional client certificate.
       --sslcertkey=KEYFILE   optional keyfile for this certificate.
                              파일이나 링크에 관련한 URL, keyfile 을 사용하여 ssl을 증명한다.


Download:

       --bind-address=ADDRESS   bind to ADDRESS (hostname or IP) on local host.
                                로컬 호스트의 주소를 설정한다.
        
  -t,  --tries=NUMBER           set number of retries to NUMBER (0 unlimits).
                                설정한 숫자 만큼 다시 시도한다. 0은 무한대이다.

  -O   --output-document=FILE   write documents to FILE.
                                문서를 파일로 쓴다.

  -nc, --no-clobber             don't clobber existing files or use .# suffixes.
                                지나치게 파일이나 사용을 종료 하지 않는다.# 첨가.

  -c,  --continue               resume getting a partially-downloaded file.
                                부분적으로 파일을 이어 받을 수 있게 한다.
       --dot-style=STYLE        set retrieval display style.
                                복구 스타일로 설정한다.

  -N,  --timestamping           don't re-retrieve files unless newer than local.
                                로컬에 있는 것보다 새롭지 않으면 파일을 다시 받지 않는다.

  -S,  --server-response        print server response.
                                서버의 응답을 출력한다.
       --spider                 don't download anything.
                                다운로드를 하지 않는다.

  -T,  --timeout=SECONDS        set the read timeout to SECONDS.
                                종료될 시간을 초단위로 설정한다.

  -w,  --wait=SECONDS           wait SECONDS between retrievals.
       --waitretry=SECONDS      wait 1...SECONDS between retries of a retrieval.
                                검색하고 기다리는 시간을 초단위로 설정한다.

  -Y,  --proxy=on/off           turn proxy on or off.
                                프락시 모드를 켜고 끈다.

  -Q,  --quota=NUMBER           set retrieval quota to NUMBER.
                                숫자 만큼 분담하도록 셋팅한다.

Directories:
  -nd  --no-directories            don't create directories.
                                   디렉토리를 생성하지 않는다.

  -x,  --force-directories         force creation of directories.
                                   디렉토리를 강제로 생성한다.

  -nH, --no-host-directories       don't create host directories.
                                   호스트 이름의 디렉토리를 생성하지 않는다.

  -P,  --directory-prefix=PREFIX   save files to PREFIX/...
                                   지정한 곳에 파일을 저장한다...
       --cut-dirs=NUMBER           ignore NUMBER remote directory components.
                                   디렉토리 구성요소를 숫자많큼 지우고 무시한다.


HTTP options:

       --http-user=USER      set http user to USER.
                             http 유저의 아이디를 설정한다.
       --http-passwd=PASS    set http password to PASS.
                             http의 패스워드의 암호를 설정한다.

  -C,  --cache=on/off        (dis)allow server-cached data (normally allowed).
                             서버측의 캐쉬 데이터를 허용하는게 보통이나, 제거 할수도 있다.

  -E,  --html-extension      save all text/html documents with .html extension.
                                             모든 text/html형식의 문서들과 .html 파일을 같이 확장해서 저장한다.
       --ignore-length       ignore `Content-Length' header field.
                                         Content-Length라는 헤더의 부분은 무시한다.
       --header=STRING       insert STRING among the headers.
                                                헤더들간의 사이의 글씨를 추가한다.
       --proxy-user=USER     set USER as proxy username.
                                                프락시의 유저이름을 설정한다.
       --proxy-passwd=PASS   set PASS as proxy password.
                                                   프락시 패스워드를 설정한다.
       --referer=URL         include `Referer: URL' header in HTTP request.
                                         http가 요청하는 헤더에서 URL참조한 것을 추가한다.

  -s,  --save-headers        save the HTTP headers to file.
                                             파일에서 HTTP 헤더를 저장한다.

  -U,  --user-agent=AGENT    identify as AGENT instead of Wget/VERSION.
                                                    Wget/Version 보다 나은 에이전트를 조사한다.
       --no-http-keep-alive  disable HTTP keep-alive (persistent connections).
                                             HTTP 의 Keep-alive 제거 (끈질기게 연결해준다.)
       --cookies=off         don't use cookies.
                                        쿠키사용 안함.
       --load-cookies=FILE   load cookies from FILE before session.
                                               쿠키를 세션전의 파일에서 불러온다.
       --save-cookies=FILE   save cookies to FILE after session.
                                                세션이후의 파일에서 쿠키를 저장한다.


FTP options:

  -nr, --dont-remove-listing   don't remove `.listing' files.
                                                  .listing 이라는 파일에 있는건 지우지 않는다.

  -g,  --glob=on/off           turn file name globbing on or off.
                                           하나의 파일 이름으로 하는지를 켜고 끈다.
       --passive-ftp           use the "passive" transfer mode.
                                         반응하지 않는 전송모드를 사용한다.
       --retr-symlinks         when recursing, get linked-to files (not dirs).
                                           복구중에 링크가 걸린 파일을 가져온다.(디렉토리는 아니다.)


Recursive retrieval:

  -r,  --recursive          recursive web-suck -- use with care!
                                     웹을 빨아들이는 것을 반복한다. 조심해서 사용하라!

  -l,  --level=NUMBER       maximum recursion depth (inf or 0 for infinite).
                                             최대한 반복한다. 정도는 0 으로하면 헤아릴수 없이 반복한다.
       --delete-after       delete files locally after downloading them.
                                      그것들을 다 받으면 로컬의 파일들을 삭제 한다.

  -k,  --convert-links      convert non-relative links to relative.
                                        관계 없는 링크에서 관계있는 것으로 변환해준다.

  -K,  --backup-converted   before converting file X, back up as X.orig.
                                                변환하기 전에 X라는 파일을 X.orig 라는 파일로 백업해준다.

  -m,  --mirror             shortcut option equivalent to -r -N -l inf -nr.
                                     -r -N -l inf -nr 이라는 옵션과 동일한 옵션을 손쉽게 사용할 수 있다.

  -p,  --page-requisites    get all images, etc. needed to display HTML page.
                                             모든 이미지와 기타 HTML 페이지가 표현 가능한 모든것을 가져온다.


Recursive accept/reject:

  -A,  --accept=LIST                comma-separated list of accepted extensions.
                                                  받아들일 것을 확장하기 위해 콤마로 분리된 리스트로 받아들인다.

  -R,  --reject=LIST                comma-separated list of rejected extensions.
                                                  거절할 것을 확장하기 위해 콤마로 분리된 리스트로 받아들인다.

  -D,  --domains=LIST           comma-separated list of accepted domains.
                                                  받아들일 도메인을 콤마로 분리된 리스트로 받아들인다.
       --exclude-domains=LIST       comma-separated list of rejected domains.
                                                  거절할 도메인을 콤마로 분리된 리스트로 받아들인다.
       --follow-ftp                 follow FTP links from HTML documents.
                                            HTML 문서에서의 FTP 링크를 따라간다.
       --follow-tags=LIST           comma-separated list of followed HTML tags.
                                                    HTML 태그에서 따라갈 콤마로 분리된 리스트로 받아들인다.

  -G,  --ignore-tags=LIST           comma-separated list of ignored HTML tags.
                                                       무시할 HTML 태그를 콤마로 분리된 리스트로 받아들인다.

  -H,  --span-hosts                 go to foreign hosts when recursive.
                                                   반복할때에 다른 호스트로도 가게 한다.

  -L,  --relative                   follow relative links only.
                                           관계있는 링크만 따라간다.

  -I,  --include-directories=LIST   list of allowed directories.
                                                          허용할 디렉토리를 리스트로 받아들인다.

  -X,  --exclude-directories=LIST   list of excluded directories.
                                                            차단할 디렉토리를 리스트로 받아들인다.

  -nh, --no-host-lookup             don't DNS-lookup hosts.
                                                      DNS의 검색 호스트를 사용하지 않는다.

  -np, --no-parent                  don't ascend to the parent directory.
                                                 상위 디렉토리를 올라가지 않도록 한다.

Mail bug reports and suggestions to <bug-wget@gnu.org>.
메일로 버그 리포트와 더나은 제안을 바랍니다.

?Who's 텅날개

profile

All truth passes through three stages. First, it it ridiculed. Second, it is violently opposed. Third, it is accepted as being self-evident. - Arthur Schopenhauer -

모든 진실은 3가지 단계를 거친다. 첫째는 조롱이고, 둘째는 거센 반발이며, 셋째는 자명한 것으로 받아들여지는 것이다. - 아르투르 쇼펜하우어 - 


All the people needed to make them happy was food and entertainment and "BREAD AND CIRCUSES" that have been used by a corrupt politician on democracy.


?

번호 제목 글쓴이 날짜 조회 수
208 계정 대량 발급 Perl 스크립트   [레벨:13]id: 텅날개텅날개 2011.11.10 5816
207 rm 으로 삭제한 파일 복구하기   [레벨:13]id: 텅날개텅날개 2011.11.10 6381
206 BASH Shell Script – 3rd Lab  file [레벨:13]id: 텅날개텅날개 2011.11.17 5828
205 SetUID / SetGID / Sticky Bit   [레벨:13]id: 텅날개텅날개 2011.11.17 5976
204 리눅스 파일 시스템 계통구조 표준(FHS)   [레벨:13]id: 텅날개텅날개 2011.11.23 5500
203 스팸메일을 방지하기 위한 Sendmail Relay 설정   [레벨:13]id: 텅날개텅날개 2011.12.13 5320
202 아파치 GeoIP를 이용한 국가별 제한   [레벨:13]id: 텅날개텅날개 2012.04.09 2569
201 useradd 명령어   [레벨:13]id: 텅날개텅날개 2012.04.14 2448
200 qmail relay, 암호 인증, STARTTLS   [레벨:13]id: 텅날개텅날개 2012.05.18 1799
199 IPTABLES 로 80port를 향하는 TCP SYN flood 방어하기   [레벨:13]id: 텅날개텅날개 2012.06.05 2101
198 screen 명령어를 이용하여 콘솔에서 멀티세션 구현하기   [레벨:13]id: 텅날개텅날개 2012.06.05 2287
197 SELinux (Security Enhanced Linux) 시작하기   [레벨:13]id: 텅날개텅날개 2012.06.06 2064
196 센토스(Centos)에서 Selinux 끄기   [레벨:13]id: 텅날개텅날개 2012.06.06 1522
195 [Linux/Unix]SELinux(Security Enhanced Linux) -개념   [레벨:13]id: 텅날개텅날개 2012.06.06 1364
» wget 완벽정리   [레벨:13]id: 텅날개텅날개 2012.06.19 1103
193 Linux IP & DNS 설정   [레벨:13]id: 텅날개텅날개 2012.07.23 335
192 VeriSign인증서 설치가이드- Golbal (Apache Server)   [레벨:13]id: 텅날개텅날개 2012.08.02 641
191 SSL 인증서 포맷 변경   [레벨:13]id: 텅날개텅날개 2012.08.02 357
190 SSL CA 루트기관 구성하기..   [레벨:13]id: 텅날개텅날개 2012.08.02 259
189 OpenSSL(SSLeay) Simple CA Usage   [레벨:13]id: 텅날개텅날개 2012.08.02 462
Board Pagination ‹ Prev 1 2 3 4 5 6 7 8 9 10 11 Next ›
/ 11
Designed by hikaru100

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

SketchBook5,스케치북5

SketchBook5,스케치북5

SketchBook5,스케치북5

SketchBook5,스케치북5