How to Use Wget to Download Files
By on October 20th, 2009

There are many download managers available for Linux but Wget still stands as the best one a Linux user can get. Wget allows us to download files from the command line. It has support for multiple file downloads, recursive downloads and many different features. We can use Wget in many different ways, but here are the five best I could aggregate:

Save under a different file-name:

Sometimes we may wish to save files under a different filename like when the filename of the file being saved is not the correct filename. In such situations, the filename can be changed using:
wget -O newname.ext "download link"
Here newname.ext is the desired filename and download link is the link to the file being downloaded.

Specify download rate:

Wget uses the full network bandwidth available which might cause trouble if you are browsing along with the download in progress. To limit download speed and save bandwidth for other applications use this method:

wget --limit-rate=50k  "download link"

This limits the download rate to 50 KBps.

Resume download:

What is a download manager without resume support! Wget has resume support which can be used as:

wget -c "download link"

This will resume the download of the file from the last downloaded part.

FTP Download:

Downloading from FTP servers is also possible with Wget. To download from FTP servers, follow this step:

wget --ftp-user=USERNAME --ftp-password=PASSWORD DOWNLOAD-URL

Download all files of a certain type:

Downloading all files of a certain type is easy with Wget.  All you need to do is type in:

wget -r -A.pdf http://url-to-webpage-with-pdfs/

where  you can replace A.pdf with A.jpeg to download all images, A.flv to download all videos etc.

Wget also shows a progress bar, download speed, downloaded amount and estimated remaining time. With all these features, Wget is surely the best download manager on Linux.

For a richer list, visit this post at thegeekstuff.com.

Author: Chinmoy Kanjilal Google Profile for Chinmoy Kanjilal
Chinmoy Kanjilal is a FOSS enthusiast and evangelist. He is passionate about Android. Security exploits turn him on and he loves to tinker with computer networks. He rants occasionally at Techarraz.com. You can connect with him on Twitter @ckandroid.

Chinmoy Kanjilal has written and can be contacted at chinmoy@techie-buzz.com.
 
Copyright 2006-2012 Techie Buzz. All Rights Reserved. Our content may not be reproduced on other websites. Content Delivery by MaxCDN