To zip anything inside a directory I find this always works (at least on 
Slackware), cd into directory and ..

zip anyNameOfArchive  -r  .


(notice the trailing . )





On Friday, June 6, 2014 7:17:53 AM UTC+1, Peter Hewson wrote:
>
> Hi all
>
> I'm a novice linux user and I'm in a bit of a pickle.
>
> I tried to create a single .zip file of a www directory (web folder) via 
> the command line. Firstly I CD'd into the www folder, then ran the 
> following command (as seen here 
> <http://linux.about.com/od/commands/a/blcmdl1_zipx.htm>):
>
>    - zip archivefile1 *
>    
> All this did though was compress and re-name *every file* in the web 
> folder (inc. files in sub-directories) with the accompanying .gz extension. 
> Obviously the whole website is kaput as a result!
>
> All the files are still there though, so is there any command to basically 
> un-do all this and restore things the way they were?
>
> God, I hope so!
>

-- 
-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or 
http://cdn.fsdev.net/List-Rules.pdf)

--- 
You received this message because you are subscribed to the Google Groups 
"Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to