How to wget to a directory/folder

from wiki instruction i know how to wget file to my root


but how to wget to a directory/folder, not to my root

i try these command but its not working

wget /mydirectory/

wget /mydirectory

wget mydirectory/

wget > /mydirectory/

please share your experience, thank you

wget YOUR URL | tar -xzv

That will redirect what you pull down into an extract/uncompress and will recreate whatever directory you tarred up.


i still dont understand, my directory name is mydirectory, where i need to put my directory name in that code?

If you want to get the files to a directory, simply cd to your directory and issue the wget command.

For example, you can

1: cd mydirectory
2: wget http://yourfile

$50 off and 3 free domains with code: [color=#CC0000]DH3[/color] Sign Up NOW or More Codes Here