gzip (GNU Zip Compressed)
GZ เป็นนามสกุลไฟล์สำหรับไฟล์ที่บีบอัดด้วย gzip เครื่องมือบีบอัดมาตรฐานบนระบบ Unix และ Linux Gzip บีบอัดไฟล์เดียวได้อย่างมีประสิทธิภาพและยังใช้สำหรับ HTTP content encoding
ประเภท MIME
application/gzip
ประเภท
ไบนารี
การบีบอัด
ไม่สูญเสียคุณภาพ
ข้อดี
- + Universal support on Unix/Linux and in HTTP content encoding
- + Fast decompression speed
- + Simple single-file compression with integrity checking
ข้อเสีย
- − Compresses only one file — needs TAR for directories
- − Lower compression ratio than bzip2, xz, or Zstandard
- − No encryption support built into the format
เมื่อใดควรใช้ .GZ
ใช้ gzip สำหรับบีบอัดไฟล์เดี่ยว web server content encoding และจับคู่กับ TAR สำหรับไฟล์เก็บถาวรหลายไฟล์
รายละเอียดทางเทคนิค
Gzip ใช้การบีบอัด DEFLATE (LZ77 + Huffman coding) พร้อมส่วนหัว 10 ไบต์ที่มี magic number, timestamp และระบุ OS รองรับระดับการบีบอัด 1-9
ประวัติ
Jean-loup Gailly และ Mark Adler สร้าง gzip ในปี 1992 เป็นตัวแทนฟรีของยูทิลิตี Unix compress กลายเป็นเครื่องมือบีบอัดเริ่มต้นใน Linux