> For the complete documentation index, see [llms.txt](https://dev-notes.vinguyen.blog/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev-notes.vinguyen.blog/notes/deployment-and-operation/linux/zip-file-with-gzip.md).

# Zip file with Gzip

**Zip a file**

```
gzip -c filename > filename.gz
```

**Unzip a file**

```
gzip -d filename.gz
```

**Ref**

* <https://linuxize.com/post/gzip-command-in-linux/>
