Archive - files.tar.gz Contents of the folder created by the command ( tar - xvzf files.tar.gz ):

 drwxrwxrwx 3 root root 4096 лип 3 03:17 assets -rw-r--r-- 1 root root 210245 лип 16 15:43 church-pastor.sql.gz -rwxrwxrwx 1 root root 249 лип 3 03:17 config.core.php.gz drwxrwxrwx 3 root root 4096 лип 17 01:42 connectors drwxrwxrwx 12 root root 4096 лип 17 01:41 core -rw-r--r-- 1 root root 4412 лип 17 01:24 error.log.gz -rw-r--r-- 1 root root 7088 лип 15 20:36 font-awesome.min.css.gz drwxr-xr-x 8 root root 4096 лип 17 01:41 .git -rw-r--r-- 1 root root 187 лип 5 20:11 .gitignore.gz 

How to unzip all files in subdirectories?

  • Judging by the presence of the .git folder, you have a project with a git repository in the archive. Moreover, both files / folders in the workspace and storage (actually, the .git folder) are archived. The repository already has the contents of all the files in the workspace, moreover it is rather archived there. - Nick Volynkin
  • That's right - not to archive the project under git, but to transfer the .git folder - you can simply copy it, or you can git through it - clone via fs, or launch it into the repository on the server and clone from there. - Nick Volynkin
  • I always (as you have described) do it, but access was only through ftp. I incorrectly archived on the server, after which I had to rebuild the archive on LAN in order to send it via ftp and unpack it through billing hosting. - Vasil Bodnaruk

1 answer 1

In your case it looks like this:

 tar -xzf files.tar.gz; find . -name '*.gz' -exec gunzip '{}' \;