wget and curl fetch files and talk to APIs from the shell. On a VPS you will use them for ISOs, scripts, health checks and HTTP debugging.
Steps
Install both tools (Ubuntu/Debian):
sudo apt updatesudo apt install -y wget curlDownload a file with wget (follows redirects, shows progress):
wget -O file.zip "https://example.com/file.zip"With curl, save the body and print the HTTP status:
curl -L -o file.zip -w "%{http_code}\n" "https://example.com/file.zip"Probe an API or health endpoint (headers + body):
curl -i https://example.com/health
Tips
- Prefer
curl -fin scripts so non-2xx responses fail the command. - Do not paste tokens into shell history: use env vars or 600-permission files.
ext step
Root shell ready in minutes: Deploy your Cloud VPS.