Intermediate · 6 min · practise every command in the built-in terminal

wget — Download Files

wget is designed for downloading files. It supports resuming, recursive downloads, and works without a TTY.

Basic download

wget https://example.com/file.zip
wget -O myfile.zip https://example.com/file.zip   # Custom name

Resume interrupted download

wget -c https://example.com/bigfile.zip    # Continue download

Download in background

wget -b https://example.com/file.zip
tail -f wget-log                           # Monitor progress

Download multiple files

wget -i urls.txt           # File containing list of URLs

Mirror a website

wget -r -l2 https://example.com   # Recursive, 2 levels deep

Quiet mode

wget -q https://example.com/file.zip   # No output

curl vs wget

Featurecurlwget
Follow redirects-Lautomatic
Resume-C --c
POST requests✅limited
Recursive download❌✅
Backgroundwith &-b

Practice tasks

  1. Download the content of https://example.com using wget
  2. Download a page and save it with a custom filename
  3. Download a file quietly, without progress output

Commands in this lesson

Networking