Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: bakedjake
I have a shared hosting account, my path is:
so I created a directory 'temp' that has my zipped up files.
/user/temp/website.zip (it is actually rar but my host doesn't have rar so I will zip it I guess)
how can I extract the files into my /user/websitename/ folder?
Also, say I just extracted the files in my /temp folder, what command would move all the contents AND the subfolders/files to my /websitename/ folder?
In answer to your question about uzipping in /users/temp/ directory and then moving all content to the /users/websitename/ name directory, assuming you are in the /users/temp directory:
mv * /users/websitename/
will move everything in /users/temp to /users/websitename, including the original zip file.
If you want to copy everything from /users/temp into /users/websitename, you would use
cp -R * /users/websitename
Here's a one-liner:
unzip -d ~/user/websitename ~/user/temp/file.zip