GZip an entire directory
https://stackoverflow.com/questions/62006960/gzip-an-entire-directory
QuestionAnswer3edited Feb 10, 2022 at 19:25As others have already mentioned, gzip is a file compression tool and not an archival tool. It cannot work with directories. When you run it with -r, it will find all files in a directory hierarchy and compress them, i.e. replacing path/to/file with path/to/file.gz. When you pass -c the gzip output is written to stdout instead of creating files. You have effectively created one big file which contains several gzip-compressed files.
DA: 62 PA: 16 MOZ Rank: 17