GZIP 格式
关于GZIP文件的一切
可创建
是
可解压
是
扩展名
.gz
平台
All
GZIP 指南
什么是GZIP文件?
GZIP is a compression format commonly used on Unix and Linux systems. It uses the deflate algorithm (same as ZIP) to compress individual files.
GZIP files have the .gz extension. A file named "document.txt" compressed with gzip becomes "document.txt.gz".
GZIP is often combined with TAR to create .tar.gz (or .tgz) archives — TAR bundles the files, GZIP compresses the bundle. This is the most common archive format on Linux.
7-Zip能打开GZIP吗?
7-Zip can create and extract GZIP files, achieving 2-10% better compression than the standard gzip utility.
7-Zip handles .tar.gz (and .tgz) files transparently — both TAR and GZIP layers are processed in a single operation.
7-Zip can also create .tar.gz archives directly by selecting "gzip" as the archive format.
如何解压GZIP文件
Right-click the .gz file
Locate your .gz or .tar.gz file in Windows Explorer, right-click it, and navigate to "7-Zip".
Choose extraction option
Select "Extract Here" to extract the compressed file. For .tar.gz, 7-Zip handles both gzip and tar layers automatically.
Access extracted files
The decompressed file appears in the destination folder. For .gz files, the original filename is restored (minus the .gz extension).
如何创建GZIP压缩包
Select file(s) to compress
GZIP compresses individual files. Select the file you want to compress in Windows Explorer.
Open the archive dialog
Right-click > 7-Zip > "Add to archive..." and set the format to "gzip".
Create the .gz file
Click OK. 7-Zip creates a .gz compressed file with better compression than standard gzip.
如何给GZIP加密
GZIP does not support password protection or encryption.
For encrypted archives, use 7z or ZIP format with AES-256 encryption.
GZIP 规格
| 扩展名 | .gz |
| 压缩 | Deflate |
| 加密 | Not supported |
| 平台 | All (native on Unix/Linux) |
| 最大大小 | 4 GB (standard), unlimited (with extensions) |
| 开发者 | Jean-loup Gailly and Mark Adler |
| MIME Type | application/gzip |
GZIP常见错误与解决方案
Cannot extract .gz file
原因: File corruption or unsupported format variant.
解决方案: Re-download the file. 7-Zip supports standard GZIP. If the file uses an uncommon extension, you may need the original compression tool.
GZIP vs 7Z
| Feature | GZIP | 7z |
|---|---|---|
| Compression ratio | Moderate (deflate) | Best (LZMA2) |
| Multiple files | No (use .tar.gz) | Yes |
| Encryption | No | AES-256 |
| Linux native | Yes | No (needs p7zip) |
GZIP FAQ
What is a .gz file?
A .gz file is a file compressed with GZIP, a common compression format on Unix/Linux. It compresses individual files. When combined with TAR, it creates .tar.gz archives.
Can 7-Zip open .gz files?
Yes. 7-Zip can extract .gz and .tar.gz files on Windows. It handles both GZIP and TAR layers automatically for .tar.gz files.
Can 7-Zip create .gz files?
Yes. 7-Zip can create GZIP compressed files. Right-click > 7-Zip > Add to archive > select "gzip" format.
What is .tar.gz?
A .tar.gz file is a TAR archive compressed with GZIP. TAR bundles multiple files, GZIP compresses the bundle. It's the standard archive format on Linux.
Is GZIP better than 7z?
For compression ratio, 7z is significantly better (30-50% smaller). GZIP is more compatible on Unix/Linux systems. Use 7z for best compression, GZIP for Linux compatibility.
准备使用7-Zip了吗?
立即下载免费、官方的7-Zip。