GO KALI FREE
Networking Commands

wget Linux Command

Downloads files from the internet non-interactively via HTTP, HTTPS, or FTP.

What does wget do?

Downloads files from the internet non-interactively via HTTP, HTTPS, or FTP.

Syntax

wget [options] URL

Practical example

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

Questions about wget

How do I download a file with wget?

Use `wget https://example.com/file.txt` to download a file. It saves the file with the same name as on the server.

How do I resume a broken download?

Use `wget -c URL` to resume a partially downloaded file. The `-c` flag continues where the previous download left off.

How do I save a file with a different name?

Use `wget -O newname.txt URL` to save the downloaded file with a custom name instead of the server's filename.

How do I download in the background?

Use `wget -b URL` to run the download in the background. Progress is logged to wget-log. Use `tail -f wget-log` to monitor.

How do I limit download speed?

Use `wget --limit-rate=200k URL` to limit download speed to 200KB/s. This prevents bandwidth saturation.

How do I download an entire website?

Use `wget -r -np URL` to recursively download a site. `-np` prevents ascending to parent directories. Add `--wait` to avoid overwhelming the server.

How do I download with authentication?

Use `wget --user=username --password=password URL` or `wget --user=username URL` to be prompted for the password.

How do I ignore SSL certificate errors?

Use `wget --no-check-certificate URL` to skip SSL verification. Only use this for testing, as it compromises security.

Related Networking Commands

curl

Transfers data from or to a server using various protocols (HTTP, FTP, etc.).

dig

Performs DNS lookups and displays detailed name server query information.

ss

Modern replacement for netstat. Dumps socket statistics quickly.

nslookup

Queries DNS servers to resolve domain names to IP addresses and vice versa.

netstat

Displays network connections, routing tables, interface statistics, and more.

host

Simple utility for performing DNS lookups (forward and reverse).