Wget Command
Wget Command
Introduction
• Wget is the non-interactive network downloader
which is used to download files from the server
• GNU (GNU's not Unix) Wget is a command-line utility
for downloading files from the web.
• With Wget, we can download files using HTTP, HTTPS,
and FTP protocols.
• Wget provides a number of options
• download multiple files
• resume downloads
• limit the bandwidth
• recursive downloads
• download in the background
• mirror a website
How to Download a File with
Wget
• In it’s simplest form when used without any option,
wget will download the resource specified in the
[url] to the current directory.
$wget https://www.tutorialspoint.com/python3/python_tutorial.pdf
• Wget starts by resolving the IP address of the
domain
• connects to the remote server
• starts the transfer
• During the download
• Wget shows the progress bar alongside with the file
name, file size, download speed, and the estimated
time to complete the download.
• current working directory
Download file with different name
• Using -O (uppercase) option, downloads file with
different file name.
Download multiple file with http and ftp protocol
• download multiple files
using HTTP and FTP protocol with wget command
at ones.
Read URL’s from a file