Linux Commands | Network | wget Web Download
wget Command
In Linux, wget is a command used to easily download files that exist on the web.
GNU Wget (or simply Wget, formerly Geturl) is a computer program that retrieves content from web servers and is part of the GNU Project. Its name comes from World Wide Web and get. It supports downloads over HTTP, HTTPS, and FTP. - Wikipedia
Download a Web File
Typing wget --help shows many available options.
It is mainly used to download a specific file from the web.
For example, suppose a file is located at http://{URL}/file.tar.gz.
wget http://{URL}/file.tar.gz
If you enter the command above, file.tar.gz is downloaded to the current folder.
Download a Web File with a Specific File Name
To save it under a specific name, use the uppercase -O option.
The O stands for Output.
For example, to save http://{URL}/file.tar.gz as ddd.tar.gz, run:
wget http://{URL}/file.tar.gz -O ddd.tar.gz
This downloads the file as ddd.tar.gz.
Installation
Install on Mac OS
% brew install wget