Skip to content

Instantly share code, notes, and snippets.

@ningthoujam-lokhendro
Created October 29, 2019 08:09
Show Gist options
  • Save ningthoujam-lokhendro/a318f25b650e05891f4dd0b8483d1677 to your computer and use it in GitHub Desktop.
Save ningthoujam-lokhendro/a318f25b650e05891f4dd0b8483d1677 to your computer and use it in GitHub Desktop.
Some wget options
# 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