Question: gzip how to compress directory?
Answer: Linux : How to gzip a folder. On Linux, gzip is unable to compress a folder, it used to compress a single file only. To compress a folder, you should use tar + gzip , which is tar -z .