/ / Http url से फाइल कैसे डाउनलोड करें? - यूआरएल, यूनिक्स, डाउनलोड, wget

Http url से फ़ाइल कैसे डाउनलोड करें? - यूआरएल, यूनिक्स, डाउनलोड, wget

मुझे पता है कि ftp से डाउनलोड करने के लिए wget का उपयोग कैसे किया जाता है लेकिन मैं नीचे दिए गए लिंक से डाउनलोड करने के लिए t उपयोग नहीं कर सकता:

http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file

यदि आप इसे ब्राउज़र में कॉपी और पेस्ट करते हैं, तो यह "डाउनलोड होना शुरू हो जाएगा। लेकिन मैं इसे सीधे हमारे सर्वर पर डाउनलोड करना चाहता हूं इसलिए मुझे इसे अपने डेस्कटॉप से ​​सर्वर पर ले जाने की आवश्यकता नहीं है। मैं यह कैसे करुं?

धन्यवाद!

उत्तर:

उत्तर № 1 के लिए 26

यह जो मैंने किया है:

wget -O file.tar "http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file"

जवाब के लिए 6 № 2

डाउनलोड किए गए फ़ाइल को बचाने के लिए निर्दिष्ट करने के लिए, wget के साथ -O विकल्प का उपयोग करें। उदाहरण के लिए:

wget -O /path/to/file http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file

जवाब के लिए 2 № 3
# -r : recursive
# -nH : Disable generation of host-prefixed directories
# -nd : all files will get saved to the current directory
# -np : Do not ever ascend to the parent directory when retrieving recursively.
# -R index.html*,999999-99999-1990.gz* : don"t download files with this files pattern
wget -r -nH -nd -np -R *.html,999999-99999-1990.gz* http://www1.ncdc.noaa.gov/pub/data/noaa/1990/