°Ô½Ã¹° 1,369°Ç
   
wget ¿É¼ÇÁ¤¸®
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2010-12-13 (¿ù) 11:47 Á¶È¸ : 14179
±ÛÁÖ¼Ò :
                                

Ãâó :
http://www.joinc.co.kr/modules/moniwiki/wiki.php/man/1/wget
http://coffeenix.net/board_print.php?bd_code=168



»ç¿ë¹ý

³×Æ®¿öÅ© »ó¿¡¼­ µ¥ÀÌÅ͸¦ ´Ù¿î·Îµå ¹Þ´Â´Ù. À¯Àú¿ÍÀÇ »óÈ£ÀÛ¿ëÀÌ ÇÊ¿ä ¾øÀ¸¹Ç·Î - non interactive - ÀÚµ¿È­µÈ ´Ù¿î·Î´õ ½Ã½ºÅÛÀ» ±¸¼ºÇÒ ¼ö ÀÖ´Ù.

wget [option]... [URL]... 
 

¼³¸í

GNU wgetÀº »óÈ£ÀÛ¿ëÀ» ÇÊ¿ä·Î ÇÏÁö ¾Ê´Â ´Ù¿î·Îµå ÇÁ·Î±×·¥À¸·Î WebÀ¸·Î ºÎÅÍ ÆÄÀϵéÀ» °¡Á®¿Ã ¼ö ÀÖ´Ù. HTTP, HTTPS, FTP ÇÁ·ÎÅäÄÝÀ» Áö¿øÇϸç, HTTp proxy¿¡¼­ µ¥ÀÌÅ͸¦ °¡Á®¿Ã ¼öµµ ÀÖ´Ù.

wgetÀÌ »óÈ£ÀÛ¿ëÀ» ÇÊ¿ä·Î ÇÏÁö ¾Ê´Â´Ù´Â °ÍÀº, ¹é±×¶ó¿îµå »óÅ¿¡¼­ ÀÛµ¿ÇÒ ¼ö ÀÖÀ½À» ÀǹÌÇÑ´Ù. »ç¿ëÀÚ´Â ·Î±×ÀÎÀ» ÇÏÁö ¾ÊÀº »óÅ¿¡¼­µµ cronÀ̳ª DamonÀ» ÀÌ¿ë wgetÀ» ½ÇÇà½Ãų ¼ö ÀÖ´Ù. ¶ÇÇÑ cookie, Form actionÀ» Áö¿øÇؼ­ »ç¿ëÀÚ ¾×¼ÇÀ» ½Ã¹Ä·¹ÀÌ¼Ç ÇÒ ¼öµµ ÀÖ´Ù.

wgetÀº HTML°ú XHTML ÆäÀÌÁö¸¦ ´Ù¿î·Îµå ¹Þ¾Æ¼­ ·ÎÄà ÆÄÀϽýºÅÛ¿¡ ÀúÀåÇÑ´Ù. À̶§ ÆÄÀÏÀ̸§°ú µð·ºÅ丮 ±¸Á¶ ±îÁö¸¦ ±×´ë·Î ·ÎÄýýºÅÛ¿¡ ±¸ÃàÇÔÀ¸·Î½á, backup, mirror »çÀÌÆ® ±¸Ãàµî¿¡ »ç¿ëÇÒ ¼öµµ ÀÖ´Ù. ¶ÇÇÑ recursive ´Ù¿î·Îµå¸¦ Áö¿øÇؼ­, »çÀÌÆ® Àüü¸¦ ½±°Ô ³»·Á¹ÞÀ» ¼ö ÀÖ´Ù.

wgetÀº ´À¸®°Å³ª ºÒ¾ÈÁ¤ÇÑ ³×Æ®¿öÅ© ȯ°æ¿¡¼­µµ ¸Å¿ì Àß ÀÛµ¿ÇÏ´Â °ß°íÇÑ ÇÁ·Î±×·¥ÀÌ´Ù. ³×Æ®¿öÅ© ȯ°æÀÌ ºÒ¾ÈÇؼ­ µµÁß¿¡ ¿¬°áÀÌ ²÷°å´Ù¸é, ¿¬°áÀÌ ²÷±ä ½ÃÁ¡ºÎÅÍ ´Ù¿î·Îµå ¹Þ´Â ±â´Éµµ °¡Áö°í ÀÖ´Ù.

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.
                                                 »óÀ§ µð·ºÅ丮¸¦ ¿Ã¶ó°¡Áö ¾Êµµ·Ï ÇÑ´Ù.


 

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.