Unpacking or uncompressing gz files under Linux and UNIX systems
Q. How do I open or uncompress .gz extension file under Linux or UNIX computer?
A. The .gz file extension are created using Gzip program which reduces the size of the named files using Lempel-Ziv coding (LZ77). gunzip / gzip is software application used for file compression. gzip is short for GNU zip; the program is a free software replacement for the compress program used in early Unix systems.
Each file is replaced by one with the extension .gz, while keeping the same ownership modes, access and modification times.
To expand i.e. to Unpacking or uncompressing gz files you need to use gunzip program Or gzip -d or zcat program:
Using gunzip command:
$ gunzip file.gz
$ ls file
Using gzip -d command:
$ gzip -d file.gz
$ ls file
If file extension is tar.gz, type the command:
$ tar -zxvf file.tar.gz
Please note that gunzip can currently decompress files created by gzip, zip, compress, compress -H or pack programs.
See also:
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- nslookup / host Dns Client Testing Command Not Found on Debian / Ubuntu Linux
- Ubuntu Linux Install GDesklets GNOME Program
- Debian / Ubuntu Linux Install NTPD To Synchronism Clock With Internet Standard Time Servers
- Debian / Ubuntu Linux Install ntop To See Network Usage / Network Status
- Ubuntu Linux vsftpd ftp service / server install, configuration howto
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: cheat sheet, command gzip, command tar, gunzip command, gz file extension, gz files, gzip command, Linux, modes, tar gz, UNIX, unix command, unix computer




Recent Comments
Yesterday ~ 12 Comments
Yesterday ~ 7 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments
Yesterday ~ 3 Comments