wget: Web Get — Download files from a URL. wget downloads files from the web on the command line. wget https://example.com/file.zip saves the file in the current folder. -O sets the output name, -c resumes an interrupted download, and -r can download whole sites recursively. It is handy on servers without a browser, in scripts and in Dockerfiles. Compared with curl, wget is focused on downloading and handles resuming and recursion well; curl is more flexible for working with APIs.
Verify what you download before running it, especially install scripts. Piping a downloaded script straight into a shell runs whatever the server sends, which could be changed by an attacker. Check checksums or signatures when the publisher provides them, and prefer package managers for installing software where possible.
Use before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.
Use when an HTTP request returns an unexpected status code (4xx or 5xx, or a redirect loop), when a user pastes an error like "419 Page Expired", "422 Unprocessable Content", "502 Bad Gateway" or "CORS error", or when debugging API calls between a frontend and a Laravel/PHP or Node backend. Finds the cause from the status code, headers and logs before changing code.