Skip to content
Advertisement

Why this file do not get downloaded into a specified location?

I am downloading the file in this link. I am using Ubuntu 12.04 and I used the below command to download it.

JavaScript

Below is my command line input and output.

JavaScript

It says the download is completed but I can’t find the file in that folder. I am accessing this server remotely using PuTTY, and using WinSCP to see the file structure. What has gone wrong? Why is it missing even it is downloaded?

Advertisement

Answer

To set the target folder, use -P (upper case) instead of -p.

From man wget:

-P prefix

–directory-prefix=prefix

Set directory prefix to prefix. The directory prefix is the directory where all other files and subdirectories will be saved to, i.e. the top of the retrieval tree. The default is . (the current directory).

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement