
You will find more information from man wget. wget -r -no-parent -reject "index.html*" If you don’t want wget to follow the link in the directory index and ascend to the parent directory, then option ‘–no-parent’ should be used as below. Removing /software-tools/index.html?C=M O=D since it should be rejected.ĭo not ascend to the parent directory while download recursively using wget Note: Recursive option for wget will work only if Directory Listing was allowed by the web server. Wget reject option # wget -r -reject "index.html*"

To avoid that, you have to use reject option with value as ‘index.html’. Download the jQuery file you downloaded previously, but this time save it in the Downloads subdirectory. You can change that by using the -P option to specify the name of the directory where you want to save the file. But remember, it will also download ‘index.html’ file under ‘software-tool’ directory and as well as inside subdirectories. Downloading a file to a specific directory When downloading a file, Wget stores it in the current directory by default. The above command will download all the files and directories inside ‘software-tools’ directory. It allows you to download a specific file, loop through a directory (I mean, recursively) and download files from subdirectories as well. Wget is the command line utility to download files from a remote web server. But I can’t seem to find the right options for wget? Can someone from techglimpse help me out? – Naveen. I would like to download all of those recursively using wget command. The ‘software-tools’ is the directory that contain plenty of subdirectories and files. Here’s an example of the intranet web directory –.

I have been trying to download all of those via wget command and yet maintain the same directory structure (the source directory has organized tools under various categories, which I like maintain it same).
#Wget all files in directory software#
Question: My company’s intranet website hosts GB’s of software tools and applications.
