How to Use WGET Command On Ubuntu

Download files with Wget on Ubuntu

Download files with Wget on Ubuntu 14.04 and 14.10

On this page you will learn how to use one of the most useful commands in Ubuntu-Linux history, the one and only Wget Command.
[mwm-aal-display]

WGet Command Examples

Wget (download manager) – The non-interactive(non-gui) network downloader.

GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.

Wget has been designed for robustness over slow or unstable network connections; if a download fails due to a network problem, it will keep retrying until the whole file has been retrieved. If the server supports download-resume, it will instruct the server to continue the download from where it left off, pretty sweet for a non-gui command right?

How to use Wget command

By default, Wget is very simple to invoke. The basic syntax is as follows:

  • wget [option] [URL]

Whenever any downloading process is being carried out, wget will show:

  1. Progress of the download in percentage
  2. Amount of data downloaded
  3. Speed of the download process
  4. Time left to complete the download process.

How to download single file with Wget

The folowing example explan how to download single file from internet and stores in current directory:

  • wget http://releases.ubuntu.com/14.04/ubuntu-14.04-desktop-amd64.iso

Downloading and saving single file width different name using Wget

  • wget -O [Preferred_Name] [URL]
  • wget -O ubuntu_amd64.iso http://releases.ubuntu.com/14.04/ubuntu-14.04-desktop-amd64.iso

Limit Speed With Wget

  • wget –limit-rate=[VALUE] [URL]
  • wget –limit-rate=80k http://releases.ubuntu.com/14.04/ubuntu-14.04-desktop-amd64.iso

Download Files In Background With Wget

  • wget -b [URL]
  • tail -f wget-log

Wget Reference Links:

  1. Lintut Wget tutorial
  2. Ubuntu Wget Man Page

You should also take a look at our Sudo Command Tutorial

You may also like...