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

If I don't want to have to download the files found in a specific url path manually, what options do I have? Using wildcards fail:

$ wget 'http://www.shinken-monitoring.org/pub/debian/*deb'
Warning: wildcards not supported in HTTP.

This of course assumes that I don't know the filenames in advance.

share|improve this question

Try this:

wget -r -l1 --no-parent -A ".deb" http://www.shinken-monitoring.org/pub/debian/

-r recursively
-l1 to a maximum depth of 1
--no-parent ignore links to a higher directory
-A "*.deb" your pattern

share|improve this answer
Although it's true in this case - this does assume that the web server returns a page at the URL that lists all the files. If it returns an index page without any of the mentioned files, wget can magically get them. – EightBitTony Aug 17 '11 at 18:57
I think that an option -nd also will be useful here. It allows to download matched files to the current directory without creating a hierarchy of directories. – annndrey Jul 10 '14 at 13:54

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.