Skip to content

Linux Wget Command Guide

Published: at 12:00 PMSuggest Changes

Linux Wget Command Guide

Introduction

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.

Usage

To download a file, use the following command:

wget [options] [URL]

Common Options

Examples

  1. Download a single file:

    wget https://example.com/file.zip
    
  2. Download a file and save it with a different name:

    wget -O newfile.zip https://example.com/file.zip
    
  3. Download a webpage and all its resources:

    wget -p https://example.com
    
  4. Recursively download a website:

    wget -r https://example.com
    

Previous Post
Linux Tar Command Guide
Next Post
Advanced Linux Commands and Techniques