-
-
Notifications
You must be signed in to change notification settings - Fork 3
Linux wget curl Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to wget and curl on Linux, covering Arch Linux, CachyOS, and other distributions including file downloads, HTTP requests, and web interactions.
Arch/CachyOS:
# Install wget
sudo pacman -S wget
# Usually pre-installedDebian/Ubuntu:
sudo apt install wgetFedora:
sudo dnf install wgetBasic download:
# Download file
wget https://example.com/file.zip
# Download with output name
wget -O myfile.zip https://example.com/file.zip
# Resume download
wget -c https://example.com/file.zipDownload website:
# Download entire site
wget -r https://example.com
# Limit depth
wget -r -l 2 https://example.comArch/CachyOS:
# Install curl
sudo pacman -S curl
# Usually pre-installedDebian/Ubuntu:
sudo apt install curlFedora:
sudo dnf install curlBasic download:
# Download file
curl -O https://example.com/file.zip
# Download with name
curl -o myfile.zip https://example.com/file.zip
# Follow redirects
curl -L https://example.com/file.zipGET request:
# GET request
curl https://api.example.com/data
# POST request
curl -X POST -d "data=value" https://api.example.com/endpointCheck connection:
# Test connection
ping example.com
# Check URL
curl -I https://example.comThis guide covered wget and curl installation, file downloads, and HTTP requests for Arch Linux, CachyOS, and other distributions.
- Network Utilities - Network tools
- Networking - Network setup
- wget: https://www.gnu.org/software/wget/
- curl: https://curl.se/
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.