Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question follows from: How do I create a local copy of a complete website section from OSX using curl?

After discovering OSX's native curl wouldn't do this task I downloaded wget from here: http://www.techtach.org/wget-prebuilt-binary-for-mac-osx-lion

But performing:

./wget -r -l 0 https://ccrma.stanford.edu/~jos/mdft/

takes hours and installs a ton of other stuff I didn't want that ISN'T contained in this folder:


Moreover opening a particular page, many of the images are missing:


This may be because I aborted the transfer after a few hours(!)

How do I do this properly?

share|improve this question
Your image links aren't inline-able. – Mat Feb 19 '12 at 9:26
@Mat, I will fix it as soon as I get 10 rep & gain the permission – P-i- Feb 19 '12 at 13:58
up vote 4 down vote accepted

try adding:


"Do not ever ascend to the parent directory when retrieving recursively. This is a useful option, since it guarantees that only the files below a certain hierarchy will be downloaded."

In my experience it also prevents downloading from other sites.

share|improve this answer
That's great, thanks! don't know why but it still contains some crud from parent cl.ly/EMoO but all of the extra adds up to only a few k. – P-i- Feb 19 '12 at 14:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.