I've not seen that behavior from a 'zip' command -- I'd like to know some
details about what OS, where you're running this, etc -- then we can help you
do what you were trying to do in the first place.
To fix this, Assuming that you do NOT intend to have any files with a .gz
extension on the server, go to the web folder via command line again, and run
this command:
find . -type f -name '*.gz' -exec gunzip {} \+
That will decompress them and restore their original names.
Date: Thu, 5 Jun 2014 23:17:53 -0700
From: [email protected]
To: [email protected]
Subject: [lug:18148] Disaster: help desperately needed to undo a zip command
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):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.
--
--
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.