Kubuntu: Using gzip

by | Feb 1, 2011 | Linux Administrator

The gzip (GNU zip) utility is a software package for compressing files. It was originally designed to replace compress, as it does a better job with compression and it is free from patented algorithms.

A .gz extension is created when gzip is used to compress files. Compressing files reduces the overall size and this is done via the Lempel-Ziv coding in gzip.

Decompressing files created by gzip, compress or pack is as simple as using gunzip.

When a file is compressed, it is replaced by one with the .gz file extension. Ownership modes, access and modification times are all preserved.

gzip-3d-Logo

To unpacking, decompress or extract files from a file with a .gz extension you need to use gunzip or gzip -d.

To use the gunzip command, type:
gunzip filename.gz

To use the gzip -d command, type:
gzip -d filename.gz
$ ls file

If the file extension happens to end in .tar.gz use the tar command by typing:
tar -zxvf filename.tar.gz

For more information on file compression, read the Ubuntu Documentation on file compression.

FYI: gunzip can decompress files created by the gzip, zip, compress, compress -H and pack software packages.

Logo with image

About the Author:

WebDevRobert

Innovative Technology Professional, working on IT/OT Convergence & Security, in the foundry industry.

Website Designer/Developer since the mid 1990’s.

Apple, Linux and Network Administrator since the late 1990’s.

Background includes several years of IT/OT and IIoT Administration, Communications Infrastructure Design and Project Management.

Currently the VP of Technology for Oil City Iron Works, Inc., in Corsicana, TX.

Subscribe for Updates:

This field is for validation purposes and should be left unchanged.
This field is hidden when viewing the form

Next Steps: Sync an Email Add-On

To get the most out of your form, we suggest that you sync this form with an email add-on. To learn more about your email add-on options, visit the following page (https://www.gravityforms.com/the-8-best-email-plugins-for-wordpress-in-2020/). Important: Delete this tip before you publish the form.
Name(Required)
Email(Required)