태그 보관물: wget

wget

wget -qO-127.0.0.1은 무슨 뜻인가요? 운이 없습니다.

나는 지금 한 시간 동안 답변을 찾기 위해 인터넷 검색을 시도했지만 여전히 운이 없습니다. 이 명령의 의미를 아는 사람이 있습니까?

wget -qO- 127.0.0.1

내가 알고 wget리눅스 “웹 GET”유틸리티이며, 127.0.0.1localhost입니다. 그러나 무슨 -qO-뜻 인지 모르겠습니다 .

또한 위의 내용이 wget -q -O 127.0.0.1터미널의 간단한 실행과 다른 결과를 제공하는 것과 다릅니다.

참고 :이 Vagrant-Getting Started Tutorial 에서이 명령을 이해하려고합니다 .

미리 감사드립니다.



답변

search-foo가 불완전합니다. 시도해보십시오 man wget.

   -O file
   --output-document=file
       The documents will not be written to the appropriate files, but all will be concatenated together and written to file.  If - is used as
       file, documents will be printed to standard output, disabling link conversion.  (Use ./- to print to a file literally named -.)

       Use of -O is not intended to mean simply "use the name file instead of the one in the URL;" rather, it is analogous to shell
       redirection: wget -O file http://foo is intended to work like wget -O - http://foo > file; file will be truncated immediately, and all
       downloaded content will be written there.

       For this reason, -N (for timestamp-checking) is not supported in combination with -O: since file is always newly created, it will
       always have a very new timestamp. A warning will be issued if this combination is used.

       Similarly, using -r or -p with -O may not work as you expect: Wget won't just download the first file to file and then download the
       rest to their normal names: all downloaded content will be placed in file. This was disabled in version 1.11, but has been reinstated
       (with a warning) in 1.11.2, as there are some cases where this behavior can actually have some use.

       Note that a combination with -k is only permitted when downloading a single document, as in that case it will just convert all relative
       URIs to external ones; -k makes no sense for multiple URIs when they're all being downloaded to a single file; -k can be used only when
       the output is a regular file.

   -q
   --quiet
       Turn off Wget's output.


답변

질문의이 종류를 들어, 브라우저가 있다면 당신은 그것을 편리하게 사용할 찾을 수 있습니다 근처에 explainshell.com을 (man 페이지는 매우 길 수에 따라 매개 변수 당신이 관심 분야를 찾기 위해 통과하는) :

여기에 이미지 설명을 입력하십시오


답변