Basics of networking
15. Basic tests of computer networks
15.5. wget
Wget is a console programme that is used to download files. Wget returns the download speed so we get information about the download performance of our internet connection.
Example:
In the terminal I type:
wget https://download.moodle.org/download.php/direct/stable311/moodle-latest-311.tgz -O moodle-latest-311.tgz
This means that I will be downloading a file from the server https://download.moodle.org, I will save the downloaded file under the name moodle-latest-311.tgz
After issuing the command in the terminal, wget returns the following:
--2022-03-31 11:31:57-- https://download.moodle.org/download.php/direct/stable311/moodle-latest-311.tgz
Resolving download.moodle.org (download.moodle.org).... 104.22.64.81, 104.22.65.81, 172.67.26.233, ...
Connecting to download.moodle.org (download.moodle.org)|104.22.64.81|:443.... connected.
HTTP request sent, awaiting response... 200 OK
Length: 60212386 (57M) [application/g-zip].
Saving to: 'moodle-latest-311.tgz'
moodle-latest-311.tgz 100%[=================================================================================================================>] 57.42M 11.0MB/s in 5.2s
2022-03-31 11:32:03 (11.1 MB/s) - 'moodle-latest-311.tgz' saved [60212386/60212386].
We can see the speed at which the file was downloaded - 11.0 MB/s