OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

wget

Another popular command-line program for file downloading is wget. It is useful for downloading content from both web and FTP sites. Single files, multiple files, and even entire sites can be downloaded. To download the first page of linuxcommand.org we


could do this:


[me@linuxbox ~]$ wget http://linuxcommand.org/index.php

--11:02:51-- http://linuxcommand.org/index.php

=> `index.php'

Resolving linuxcommand.org... 66.35.250.210

Connecting to linuxcommand.org|66.35.250.210|:80... connected. HTTP request sent, awaiting response... 200 OK

Length: unspecified [text/html]

[me@linuxbox ~]$ wget http://linuxcommand.org/index.php

--11:02:51-- http://linuxcommand.org/index.php

=> `index.php'

Resolving linuxcommand.org... 66.35.250.210

Connecting to linuxcommand.org|66.35.250.210|:80... connected. HTTP request sent, awaiting response... 200 OK

Length: unspecified [text/html]


[ <=>

] 3,120

--.--K/s

[ <=>


11:02:51 (161.75 MB/s) - `index.php' saved [3120]

11:02:51 (161.75 MB/s) - `index.php' saved [3120]


image

The program's many options allow wget to recursively download, download files in the background (allowing you to log off but continue downloading), and complete the down- load of a partially downloaded file. These features are well documented in its better-than- average man page.


Top OS Cloud Computing at OnWorks: