Wazaterm » Linux Commands » wget

How to use wget Linux command

The wget command 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.

Installation

Debian ubuntu

    
      $ sudo apt install wget
    
  

Usage

Download a file from web with wget

    
      $ wget https://raw.githubusercontent.com/svenfuchs/rails-i18n/master/rails/locale/en.yml
    
  

Download a file with basic authentication using wget (both HTTP and FTP)

    
      $ wget --user=USERNAME --password=PASS https://xxxx