Network and internet

Download with wget: resume, many files or a whole folder

wget picks up a broken download where it stopped, works through a list of links and can fetch a whole folder from a website.

Fill these in once
  1. Install wget
    Terminal
    brew install wget
  2. Download a file
    Terminal
    wget https://example.com/files/big.iso
  3. Resume a download that stopped
    Terminal
    wget -c https://example.com/files/big.iso

    Run it in the same folder as the half-finished file.

  4. Download every link in a list
    Terminal
    wget -i links.txt

    links.txt has one link per line.

  5. Download a whole folder from a website
    Terminal
    wget -r -np https://example.com/files/big.iso

    -np stops it climbing up to the rest of the site. Only use it on sites you're allowed to copy.

Undo it
  1. Uninstall wget
    Terminal
    brew uninstall wget
  1. Install wget (most systems already have it)Needs sudo
    Terminal · Ubuntu / Debian
    sudo apt install -y wget
  2. Download a file
    Terminal · Ubuntu / Debian
    wget https://example.com/files/big.iso
  3. Resume a download that stopped
    Terminal · Ubuntu / Debian
    wget -c https://example.com/files/big.iso

    Run it in the same folder as the half-finished file.

  4. Download every link in a list
    Terminal · Ubuntu / Debian
    wget -i links.txt

    links.txt has one link per line.

  5. Download a whole folder from a website
    Terminal · Ubuntu / Debian
    wget -r -np https://example.com/files/big.iso

    -np stops it climbing up to the rest of the site. Only use it on sites you're allowed to copy.

  1. Install wget
    PowerShell
    winget install JernejSimoncic.Wget

    Close and reopen PowerShell afterwards. Type wget.exe, because plain wget in Windows PowerShell is a different command.

  2. Download a file
    PowerShell
    wget.exe https://example.com/files/big.iso
  3. Resume a download that stopped
    PowerShell
    wget.exe -c https://example.com/files/big.iso

    Run it in the same folder as the half-finished file.

  4. Download every link in a list
    PowerShell
    wget.exe -i links.txt

    links.txt has one link per line.

  5. Download a whole folder from a website
    PowerShell
    wget.exe -r -np https://example.com/files/big.iso

    -np stops it climbing up to the rest of the site. Only use it on sites you're allowed to copy.

Undo it
  1. Uninstall wget
    PowerShell
    winget uninstall JernejSimoncic.Wget

New to URL? I explain it in plain English on Layman Terms.