How to Use Wget to Download Files

by Chinmoy Kanjilal | Translate | Print
Tuesday, 20th Oct 2009 | Share


Share How to Use Wget to Download Files on Twitter Share How to Use Wget to Download Files on Facebook Save How to Use Wget to Download Files To Delicious Favorites Stumble How to Use Wget to Download Files Share How to Use Wget to Download Files on Digg Get Instant Updates as RSS Feeds from Techie Buzz

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.



Share

No Responses so far | Share Your Opinions!

Leave a Comment

Note: We discourage users from using keywords in their names while posting comments, most of them get caught by spam, also it really would be more fruitful in knowing people who comment by their real name, rather than by using a name no one relates to. In future we reserve the right to delete comments from users using a name other than their own.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>