Thursday, July 26, 2007

wget instead of ftp for downloading directories and files

The other day I wanted to download source code from an ftp site.
So I logged on to the site:
ftp ftp://ftpsite
user: username
password: mypass

Then to get the list of files I did
> ls

There were a lot of files and directories too. So how do I download the directory structure?
I did not know how to do it ftp as well as in wget. I found a way out with wget as follows:
wget -r --ftp-user username --ftp-password mypass ftp://ftpsite

I love "wget"!

Introduction

Hi!
This blog is mainly for me!
It may be useful to the fellow programmers and linux lovers..