


Wget command example #1 – Download a single file.
#Wget recursive install#
You can also make sure that your server is up to date with the following commands: apt-get updateĪfter the upgrades have been installed, you can then install the wget software package with the following command: apt-get install wgetĪfter the installation is completed, you can now start using the wget command on your server. The first step is to log in to your server via SSH. In this article, we will demonstrate the use of wget through some practical examples that you can use to accomplish some of the most common tasks such as downloading files or even mirroring entire websites.įor the purpose of this demonstration, we will install wget on an Ubuntu 16.04 VPS. Please note that even though this has been tested on Ubuntu 16.04, the instructions can be used on any other Linux distribution as well. This allows you to start a file download and disconnect from the system, letting wget finish the work. It can work in the background even if a user is not logged in. It can be easily called from scripts, cron jobs, terminals, etc. Wget is non-interactive which gives great flexibility in using it. Wget has many features which makes it a very easy task when it comes to retrieving large files, recursive downloads, multiple file downloads, or mirroring entire web or FTP sites. Its name comes from World Wide Web + get. Wget is a free utility that can be used for retrieving files using HTTP, HTTPS, and FTP which are considered as the most widely-used Internet protocols. We’ll show you 10 practical examples of the Wget Command.
