0

I tried to use the gzip command on my public_html folder, and I've landed in a pretty big mess.

Exact command I used: gzip -r /home/account/www/

Now, in many sub-levels I have individually compressed .gz files. Is there an easy way to undo my actions?

Arronical
  • 20,241

1 Answers1

1

You could combine the find command with gunzip like so:

find . -type f -iname '*.gz' -exec gunzip "{}" \;

Make sure you do this from the /home/account/www directory, or use this command

find /home/account/www -type f -iname '*.gz' -exec gunzip "{}" \;
Arronical
  • 20,241