Wget is non-interactive network downloaded meaning all the download operation will run in the background. Therefore you can download any file from the Internet with wget command. Wget also lets user to download the entire website. The download process start with simple wget command followed by the website URL However fewer other command will helps user to achieve other resources of the web pages. Therefore this post include all the guide of command wget which can uses as download manager in Linux as well as use in other different purpose. Wget supports HTTP, HTTPS and FTP protocol to download file.
Download web pages using wget
For example you want to download the front page of freshtutorial.com. You can simply follow the command
|
1 |
wget freshtutorial.com |
the download start and saved your file in home directory which you can use for later off-line uses. Now lets suppose you have connection problem or the freshtutorial server has some problem. Wget try to reconnect to the server 20 times by default. You can limit the reconnection limit by following command
|
1 |
wget -t freshtutorial.com |
Now the wget will try to reconnect to the server 8 times. The above will download index.html file only. What if you want to download complete website. The below command will download the website up to five level depth than the usual
|
1 |
wget -r freshtutorial.com |
To convert all the website into off-line viewer you can use the following command.
|
1 |
wget --convert-links -r linux.about.com -o logfile |
Download and Resume your download using Wget
Suppose you are downloading file certainly get disconnected from the Internet. With wget you can resume you download with a command second time. Therefore wget acts as a download manager. To download the file simply open your terminal and enter the following the command wget followed by website URL. See the example
|
1 |
wget URL |
|
1 |
wget http://wordpress.org/extend/themes/download/evolve.1.2.2.zip |

Now what if you are downloading large file for example game and you are disconnected from the server Now you have to download from the start if you haven’t use any download manager. Wget let you t o download the file from the level you have disconnected from the Internet. For that purpose use the following command line
|
1 |
wget -c http://wordpress.org/extend/themes/download/evolve.1.2.2.zip |
This process will resume your download
Download the dynamic website to static local copy
What if you want to download the dynamic website made by WordPress Joomla or Durpal that has lots of stuff in database. For this purpose you can use the following command which will convert all dynamic to static web page which you can use for local uses
|
1 |
wget --mirror --convert-links URL |
Example
|
1 |
wget --mirror --convert-links freshtutorial.com |
Analyze HTTP request
For this purpose we will use the following command line.
|
1 |
wget -r --spider URL |
Example
|
1 |
wget -r --spider freshtutorial.com |

Also Check
8 Different command for ubuntu beginner user





on
on
on
[...] 4 different way to use wget command in Linux [...]