Wget Command on Ubuntu 26.04 (2026): Examples + Cheat Sheet

Share

The wget command downloads files over HTTP, HTTPS and FTP on Ubuntu 26.04 LTS and Ubuntu 26.10. Use it for ISOs, packages and scripted fetches when you want a dedicated downloader instead of curl.

Before You Start
Ubuntu version
wget is installed by default on Ubuntu 26.04 and 26.10 Desktop and Server.
Terminal
Open with Ctrl + Alt + T. Prefer https URLs and verify checksums for OS images.
curl vs wget
curl shines for APIs; wget is excellent for recursive site mirrors and resume-friendly file downloads.
KEY TAKEAWAYS
01Simple file fetches
wget URL downloads into the current directory by default.
02Resume with -c
Continue a partial download after a dropped connection.
03Cheat sheet included
Download the free wget cheat sheet in PDF or ebook formats.
04Rate limits help
Use –limit-rate on shared links so large ISOs do not saturate your line.
05Background jobs
-b runs wget in the background and writes wget-log.
06Related reading
See networking commands for curl, and Top 40 for everyday shell skills.
Free Cheat Sheet

Download the Wget Command Cheat Sheet

Wget examples from this guide in one file. Pick PDF for printing, or EPUB / DOCX / MOBI / AZW3 for your reader.

Also see Linux networking commands and Ubuntu 26.04 LTS download.

Wget examples on Ubuntu

1. Download a single file

Fetch one URL into the current folder.

wget https://example.com/file.zip
wget https://example.com/file.zip
Sample terminal output of wget --version on Ubuntu
Sample output: wget –version on Ubuntu (generated for this guide).

2. Rename the output

Save under a chosen file name with -O.

wget -O ubuntu.iso https://example.com/ubuntu.iso
wget -O ubuntu.iso https://example.com/ubuntu.iso

3. Save into a directory

Create or use a target folder with -P.

mkdir -p ~/Downloads && wget -P ~/Downloads https://example.
mkdir -p ~/Downloads && wget -P ~/Downloads https://example.com/file.zip

4. Continue a partial download

Resume after an interrupt.

wget -c https://example.com/large.iso
wget -c https://example.com/large.iso

5. Limit download speed

Keep bandwidth free for other tasks.

wget –limit-rate=500k https://example.com/large.iso
wget --limit-rate=500k https://example.com/large.iso

6. Set retry attempts

Useful on flaky links.

wget –tries=5 https://example.com/file.zip
wget --tries=5 https://example.com/file.zip

7. Download in the background

Returns immediately and logs progress.

wget -b https://example.com/large.iso
wget -b https://example.com/large.iso
tail -f wget-log

8. Multiple URLs from a list

One URL per line in urls.txt.

wget -i urls.txt
wget -i urls.txt

9. Custom user agent

Some sites expect a browser-like agent string.

wget –user-agent="Mozilla/5.0" https://example.com/
wget --user-agent="Mozilla/5.0" https://example.com/

10. FTP download

Works for ftp:// URLs when anonymous or credentialed access is allowed.

wget ftp://ftp.example.com/pub/README
wget ftp://ftp.example.com/pub/README

11. Mirror a site carefully

Recursive fetch with depth limits. Be polite; do not hammer servers.

wget –mirror –level=2 –no-parent https://example.com/docs
wget --mirror --level=2 --no-parent https://example.com/docs/

12. Check also curl

For headers and APIs, curl may be clearer.

curl -I https://example.com
curl -I https://example.com

Useful wget options

Option Meaning
-O file Write to this file name
-P dir Directory prefix
-c Continue / resume
-b Background
-i list URLs from file
–limit-rate Throttle bandwidth
–tries=N Retry count
–user-agent Set User-Agent
–mirror Recurse for mirroring

Why wget matters

Ubuntu admins still reach for wget when fetching ISOs, release tarballs and package archives in scripts. Knowing -c, -O and –limit-rate covers most real-world downloads.