Skip to content

Tuesday, December 1st, 2009

New Linux User

HOWTO: Use WGET

April 18, 2006 by Jon  
Filed under How To

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!

  • StumbleUpon
  • Digg
  • Facebook
  • Mixx
  • Google
  • TwitThis
  • Reddit
  • Yahoo! Buzz
  • Slashdot
  • E-mail this story to a friend!

Comments

7 Responses to “HOWTO: Use WGET”
  1. Eric says:

    handy to download plugins for my MT installation on a remote host.

  2. Eric says:

    followed commands after I download my plugin is :

    $gunzip somefile.tar.gz
    $tar xvf somefile.tar
    :)

  3. Jon says:

    That’s what I use it for. Downloading Wordpress plugins and stuff directly from one server to another.

    Way faster :)

  4. Imran Khan says:

    HI,

    I am using putty to upload files on the server. Whats the comand line using wget?

  5. Has anyone been successful at using wget to retrieve data from behind authentication on a site built with tomcat?

  6. srinivas says:

    I need to download some images from production server using puuty please help to how to get images , plz explain with wget commends.

Trackbacks

Check out what others are saying about this post...
  1. [...] to mirror her blog on my computer so I could read the entire novel’s translation easily. Jon here has a post on using wget and how useful it [...]



Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!


About Us | Advertise with us | Blog for EveryJoe | Privacy Policy | Terms of Use
Get This Theme | Sitemap


All content is Copyright © 2005-2009 b5media. All rights reserved.