DannyITR
01-18-2004, 09:32 PM
I'd like to zip a folder on the server in shh.
I tried: zip file.zip /path/to/folder
but it made an empty zip file. What is the command? Also what is the unzip command?
blessen
01-18-2004, 11:20 PM
To zip up an entire directory, the command:
zip -r foo foo
creates the archive foo.zip, containing all the files and directories in the directory foo that is contained within the current directory.
To unzip...you can use the unzip command in linux.....
blessen
01-18-2004, 11:21 PM
to unzip you can just use unzip file.zip
DannyITR
01-19-2004, 12:05 AM
Is there a way to do it without having all the directory structure that's it's contained within? WS_FTP doesn't seem to allow me to move directories up a level so when I unzip I need to have it at the right place.
Winkie
01-19-2004, 08:52 AM
^^ don't give the absolute path? cd to the base path and zip from there?