GzGit in the Zone

Tools & Commands · Linux and Windows Commands

wget

Web · Beginner

Downloads a file from a URL and saves it locally. It is common on Linux for a straightforward retrieval you are allowed to make.

Give it an address you are allowed to fetch. It writes the file in the current directory unless you choose another name.

Example: wget https://example.com saves the response body as a local file.

Command

Platform: Common on Linux; available elsewhere

wget https://example.com

Progress lines show the transfer. The saved file name usually comes from the URL. Check the file before you trust or execute it.

Common misconception

  • A download tool is not a vulnerability scanner. It retrieves the URL you name.

Related terminology

Quiz this category