24

I am pretty new wget. I just need to know how I can set destination folder where downloads are saved.

I believe that is --directory-prefix.

Thank you,

GAD3R
  • 66,769
  • 2
    You're correct; it is --directory-prefix (or -P). Of course, if wget is doing a recursive copy, it will create more subdirectories under that directory. Look into the -nH and --cut-dirs options to control that. – Edward Falk Sep 01 '16 at 20:38
  • 2
    More importantly: what are you trying to do, what have you tried, and what went wrong? – Edward Falk Sep 01 '16 at 20:38

1 Answers1

46

Use -P option then specify the destination:

wget url -P /path/to/folder
GAD3R
  • 66,769