b5media.com

Advertise with us

Enjoying this blog? Check out the rest of the Technology Channel Subscribe to this Feed

New Linux User

HOWTO: Use WGET

by Jon on April 18th, 2006

Wget is an “unattended downloader” application. What does this mean? Well, you can use wget to grab files off the network using the http, https, ftp, and possibly some other protocols It’s designed to be non-interactive meaning that it doesn’t require any user intervention once launched. A simple command like:

wget http://www.somehost.com/files/somefile.tar.gz

will download somefile.tar.gz to my local machine.

Since wget is non-interactive (meaning that there is no user intervention required once it is launched), it’s ideal for use in scripts to do things like grab PHP files that contain processing instructions.

I also use wget in a different way. I frequently use it to grab files from a remote server when I’m ssh’d into my server. It saves me from downloading the file to my local machine and then uploading it to my server. I’ve made a (blurry, but readable) video on how I use wget on the Linux Learning Station.

This link has the entire command reference for wget (although I think it’s a little out of date).

Enjoy!

POSTED IN: How To

6 opinions for HOWTO: Use WGET

Have an opinion? Leave a comment:




Check Spelling
Activate Spell Check while Typing