Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I want to mirror a website. It's built-on like this.


And I only want to get all links from this link:


Is there any command in wget, to get all links only starting like this: ?

share|improve this question
possible duplicate of wget recursive limited within subdomain – Karan May 26 '13 at 23:33
Yes, there was a good tip for me :) – superuser May 26 '13 at 23:42

Yes, the solution is -I:

  -I list
       Specify a comma-separated list of directories you wish to follow
       when downloading.  Elements of list may contain wildcards.


wget --no-parent -I /A/G/4
share|improve this answer

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.