Skip to content

wget command

Download files from the web, with resume and recursive download.

On this page

Syntax

wget [options] URL…

Provided by the wget package. Run man wget for the full manual.

Common options

OptionWhat it does
-O FILESave as FILE
-P DIRSave into DIR
-cResume a partial download
-bDownload in the background
-qQuiet
-i FILEDownload every URL listed in FILE
-rRecursive download
--limit-rate=RATELimit speed, e.g. 1m
--no-check-certificateSkip TLS checks

Examples

  1. Download a file

    wget https://example.com/file.tar.gz
  2. Save with another name

    wget -O latest.zip https://example.com/download
  3. Save into a directory

    wget -P /tmp https://example.com/file.iso
  4. Resume a broken download

    wget -c https://example.com/big.iso
  5. Download a list of URLs

    wget -i urls.txt
  6. Limit the speed

    wget --limit-rate=2m https://example.com/big.iso
  7. Mirror a site for offline use

    wget --mirror --convert-links --page-requisites --no-parent https://example.com/docs/

wget guides

← All Linux commands · Suggest a fix

Back to top