![]() |
Unzipping to a different folder?
In Unix, whats the command to unzip to a different folder from the one the zip file is in? So if I have a zip file file.zip in the current folder and need to unzip it to /home/users/folder.com/html/files what command would I type in?
|
cd (directory you want files to go to)
(command to unzip) (full path to file) eg if it is a file test.tar in /home/poopmonster/tars/ and you want it in /home/poopmonster/poops/ you would do: cd /home/poopmoster/poops/ tar -xvf /home/poopmonster/tars/test.tar |
go to the dir with the .zip file
then type unzip file.zip -d /home/users/folder.com/html/files/ the server must have unzip installed. if not, you can probably get the binary somewhere off the net. (just search for it on google) |
Thanks!
|
All times are GMT -7. The time now is 09:21 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123