Wget Cheatsheet

Wget utility for downloading files, mirroring websites, and recursive downloads

HTTP Client6 commandsbeginner

Overview

Wget is a non-interactive network downloader for retrieving files via HTTP/HTTPS/FTP.

Why It Matters

Wget is essential for downloading files from the web and mirroring entire websites.

Essential Commands

wget https://example.com/file.zip

Download file from URL

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

Resume interrupted download

wget -O output.html https://example.com

Save response to specific filename

wget -r -np -k https://example.com/docs/

Recursively mirror docs site

wget --limit-rate=500k https://example.com/file

Throttle download bandwidth

wget --spider https://example.com

Check URL availability without downloading

Quick Start

Begin by learning download files with retry and resume support

Key Concepts

Download files with retry and resume support

Mirror websites recursively

Use authentication and cookies for secure downloads

Pro Tips

  • Combine multiple commands for powerful workflows
  • Use aliases to speed up your command entry
  • Create scripts to automate repetitive tasks

Common Pitfalls to Avoid

  • Forgetting to check the documentation for edge cases
  • Running commands without understanding their full impact
  • Not testing changes in a safe environment first

Related Resources

8 items

Quick Reference

Compare Options