SSH unzip to a SPECIFIC directory?

Hello!

I have a zip file that i uploaded to my server. I unzip the file with SSH: unzip mysite.com/Archive.zip

Now, it does work fine BUT it extract everything at the root. So all the files are outside the “mysite.com” folder. I guess this is pretty easy, but i can’t find anything on this. How can i unzip the file in a folder? I want my files to be unzip in mysite.com folder, not at the root!!

Thanks!!!

Well, i did manage to get it done. i had to go to my web folder: cd mysite.com And then unzip the file.

Sorry if this may seam obvious, but i’m new with SSH and like when you copy/move a file with SSH i though you could specify a destination folder. So as far as i can see, there is no way i can simply specify the folder i want the file to be unzip?

thanks!

The -d option seems to be what you’re looking for: unzip(1) - Linux man page