Created
October 29, 2019 08:09
-
-
Save ningthoujam-lokhendro/a318f25b650e05891f4dd0b8483d1677 to your computer and use it in GitHub Desktop.
Some wget options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Downloading a single file content can be as easy as | |
wget http://example.com/abc.zip | |
# Specify filename on disk | |
wget http://example.com/abc.zip -O file.zip | |
# Download a directory | |
wget -r --no-parent http://mysite.com/xyz/ | |
# Download a directory with no index.html | |
wget -r --no-parent --reject "index.html*" http://mysite.com/xyz/ | |
# Download a directory with level of sub-dir | |
wget -r -nH --cut-dirs=6 --no-parent --reject="index.html*" http://mysite.com/xyz/ | |
# Download with credentials | |
wget --http-user=user --http-password=password http://example.com/abc.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment