User Tools

Site Tools


unix_commands:wget

The wget command in Linux and Unix-like systems is used to download files from the internet via HTTP, HTTPS and FTP protocols.

Here are a few examples of how the wget command can be used:

  1. Download a single file:
    wget http://example-url/file.zip
  2. Download a file and save it with a different name:
    wget -O newname.zip http://example-url/file.zip
  3. Download a file and resume a stopped or incomplete download:
    wget -c http://example-url/file.zip
  4. Download files from a website recursively:
    wget -r http://example-url/
  5. Download files from a website with a specific extension:
    wget -r -A.zip http://example-url/
  6. Download files using a proxy:
    wget --proxy=http://proxy-example-server:port http://example-url/file.zip

wget command is widely used to automate the download of files, it can be scheduled to run in the background and download files at regular intervals.

  1. The -r option, you can download a whole website recursively;
  2. The -A option you can specify the type of files that you want to download;
  3. The -c option can be used to continue a stopped or incomplete download;
  4. The -O option can be used to specify a different name for the downloaded file.

It's also possible to use wget to download files from FTP server by specifying the ftp protocol and the credentials if required, for example:

wget ftp://username:password@ftpserver/path/to/file.zip
unix_commands/wget.txt ยท Last modified: 2023/01/17 08:52 by admin

CIFNet is a leading hosting solution provider, offering a wide range of services including IP bandwidth, co-location, VMware and KVM hosting.
Host Your Site with CIFNet!