How Can We Help?

Download Online Resources from the Command Line with wget

Table of Content

What is wget ?

Wget is an internet command line utility which recovers files to the local filesystem and stores them. You can download any file accessible by HTTP, HTTPS or FTP using wget. wget gives a number of user configuration options for downloading and saving of files. It also features a recursive download function to download a set of linked resources.

Using wget

The command wget uses the following fundamental syntax:

 [[email protected] ~]# wget [ARGUMNET] [URL] 

If you use wget without any argument then it will download the file specified by the [URL] to the current directory

 [[email protected] ~]# wget 

This above command will download a zip file from website.

Download Content to Standard Output

The -O option controls the file location and name in which the downloaded content is written. To download and save the file to the Text directory as micro.txt :

wget -O Text/micro.txt

We have completed the Wget command section:

Thank You 🙂

Table of Contents