{"id":23810,"date":"2017-10-24T08:00:40","date_gmt":"2017-10-24T13:00:40","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=23810"},"modified":"2022-12-19T08:04:36","modified_gmt":"2022-12-19T14:04:36","slug":"wget-command-examples","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/wget-command-examples\/","title":{"rendered":"10 Useful Wget Command Examples In Linux"},"content":{"rendered":"
<\/div>

\"Wget<\/p>\n

\"wgetWe’ll show you 10 practical examples of the Wget Command. 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.<\/p>\n

Its name comes from World Wide Web + get. 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.<\/p>\n

Wget is non-interactive which gives great flexibility in using it. It can be easily called from scripts, cron jobs, terminals, etc. It can work in the background even if a user is not logged in. This allows you to start a file download and disconnect from the system, letting wget finish the work.<\/p>\n

In this article, we will demonstrate the use of wget through some practical examples<\/strong> that you can use to accomplish some of the most common tasks such as downloading files or even mirroring entire websites.<\/p>\n

<\/p>\n

Prerequisites:<\/strong><\/p>\n

For the purpose of this demonstration, we will install wget<\/strong> on an Ubuntu 16.04 VPS<\/a>.\u00a0Please note that even though this has been tested on Ubuntu 16.04, the instructions can be used on any other Linux distribution as well.<\/p>\n

The first step is to log in to your server via SSH<\/a>.<\/p>\n

You can also make sure that your server is up to date with the following commands:<\/p>\n

apt-get update\r\napt-get upgrade<\/pre>\n

After the upgrades have been installed, you can then install the wget software package with the following command:<\/p>\n

apt-get install wget<\/pre>\n

After the installation is completed, you can now start using the wget command on your server.<\/p>\n

\n

Table of Contents<\/p>\n