이 wget 명령이 이 파일을 다운로드하지 못하는 이유는 무엇입니까?

이 wget 명령이 이 파일을 다운로드하지 못하는 이유는 무엇입니까?

브라우저의 주소 표시줄에 URL을 붙여넣는 동안 다음 명령이 PDF 파일을 다운로드하지 못하는 이유가 궁금합니다. (이 질문을 통해 HTTP, 웹 서비스 또는 웹 애플리케이션에 대해 조금 배우려고 합니다.)

wget을 사용하여 pdf 파일을 다운로드하려면 어떻게 해야 합니까?

감사해요.

$ wget https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.99.598&rep=rep1&type=pdf
[1] 5696
[2] 5697

Redirecting output to ‘wget-log.1’.
[2]+  Done                    rep=rep1

$ cat wget-log
--2019-11-25 13:30:42--  https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.99.598
Resolving citeseerx.ist.psu.edu (citeseerx.ist.psu.edu)... 130.203.136.95
Connecting to citeseerx.ist.psu.edu (citeseerx.ist.psu.edu)|130.203.136.95|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5641 (5.5K) [text/html]
Saving to: ‘download?doi=10.1.1.99.598’

download?doi=10.1.1.99.598                   100%[============================================================================================>]   5.51K  --.-KB/s    in 0s      

2019-11-25 13:30:42 (453 MB/s) - ‘download?doi=10.1.1.99.598’ saved [5641/5641]

[1]+  Done                    wget https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.99.598

답변1

&귀하의 쉘이 URL의 문자를 해석하고 있지만 에 도달하지 못하는 것 같습니다 wget.

문자열을 작은따옴표로 묶어서 쉘이 모든 것을 하나의 문자열로 처리하고 특수 문자를 해석하지 않도록 해야 합니다.

wget 'https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.99.598&rep=rep1&type=pdf'

관련 정보