GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Unzipping to a different folder? (https://gfy.com/showthread.php?t=61909)

Hypo 05-26-2002 04:48 PM

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?

posh rat in hell 05-26-2002 05:11 PM

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

Dreamman010 05-26-2002 05:11 PM

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)

Hypo 05-26-2002 05:20 PM

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