E
E
ermilovroman2015-05-29 22:29:58
CentOS
ermilovroman, 2015-05-29 22:29:58

How to unpack all gz archives in all child directories?

In general, with crooked hands, I accidentally packed all the files of the site.
9a347586eec6441f92e4eb6f6f0fa03f.png
Now instead of all files archive type: filename.php.gz
How to return everything back?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2015-05-30
@ermilovroman

Here is the command:
find . -name '*.gz' -exec gunzip {} \;

A
Adamos, 2015-05-29
@Adamos

I won’t reproduce the command by heart, therefore, schematically, so that crooked hands do their dirty work again:
For details, see the articles about find and its documentation - explanations in RuNet sea

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question