File Transfer - Wget


Windows 10 PowerShell has also curl available.




Download to a specific file name

  • -O specify the target file name
wget <file.ext> -O /path/to/folder/file.ext

Download to a specific folder

  • -P define the download folder
wget <file.ext> -P /path/to/folder

Download a file with basic authentication

Authentication - Basic Authentication (HTTP)

wget --http-user=login --http-password=password

Download a whole web site

wget -r --no-parent -m -p -E -k
r - recursive
m, --mirror            Turns on recursion and time-stamping, sets infinite recursion depth, and keeps FTP directory listings.
-p, --page-requisites   Get all images, etc. needed to display HTML page.
-E, --adjust-extension  Save HTML/CSS files with .html/.css extensions.
-k, --convert-links     Make links in downloaded HTML point to local files.

Documentation / Reference

Powered by ComboStrap