Menu
Is free
registration
home  /  Education/ Gzip compressed file how to open. How to open a .GZIP file? What is GZ Resolution

Gzip compressed file how to open. How to open a .GZIP file? What is GZ Resolution

Brainsburn

Comparison of archivers in Linux

For a long time I wanted to spend comparative test popular archivers that are available in Linux and now, finally, there was free time to do it. I did not try exotic or outdated archivers, I took part in the experiment 7z, xz, zip, bzip2, gzip and even a trial version of the archiver was downloaded rar... All archivers were tested with three different compression settings - fastest, medium (default) and best compression. I must say right away - I did not experiment with additional options like the size of dictionaries - I left all this by default, otherwise the comparison of archivers would stretch several times and become less understandable. Moreover, various tricks with compression options do not always lead to the expected result, the developers know their offspring quite well, therefore, in order to achieve maximum data compression in 7z, it is enough to use the option -mx = 9 and do not soar your brains :)

Now I have several thick files with text open in front of me, from which I need to assemble an article, not forgetting anything necessary and throwing out the excess trash. This is the most difficult thing :) I will try to present all this in a more or less readable form. Go!

Tested archivers and unpackers

  • Gzip 1.4
  • Bzip2 1.0.5
  • RAR 3.93
  • ZIP 3.0
  • unzip 6.0
  • tar 1.22 (this version adds support for xz-utils)
  • xz-utils 4.999
  • p7zip 9.04
  • How the execution time was measured
    The time utility. This utility can show the actual number of seconds spent by the processor to complete a task. This is very important for testing archivers. For example, if I decide to compress the Linux kernel sources ZIP archiver and I will time the task execution time with a regular stopwatch, then I will find that the first time the compression took about 2 minutes, the second time about 30 seconds, the third time 10 seconds. I don’t think it’s worth mentioning why this is happening. The time utility allows you to avoid such problems and in all cases outputs the same result - the total number of CPU-seconds that the process spent in user mode. Roughly speaking, the test results do not depend on the read speed. data from the hard disk.

    What types of files were compressed

  • Lots of media files that are already compressed. These are all sorts of mp3, jpeg, pdf and avi.
  • Binary files
  • CD image
  • Linux kernel sources
  • Uncompressed documents, txt and doc files
  • Large number of small files
  • In what environment the tests were carried out
    32-bit CPU, 4GB DDR2 RAM. Gentoo Linux Distribution, file system ext4fs. All tests were carried out in the console with the Xs turned off, stopped by unnecessary demons, and in general everything that was possible was turned off, even the light :) Ie. the computer was used exclusively for testing archivers and no more.

    What was taken into account in testing

  • Compressed data type and number of files
  • Archiving speed
  • Size of the received archives
  • Unpacking speed of the received archives
  • Compression ratio specified in the archiver settings
  • A small educational program.
    LZMA- a new data compression (compression) algorithm, which is used to create archives in the 7z format. Features: high compression ratio, use of dictionaries of various sizes, open source. - utility and algorithm with open source code for data compression. Following the Unix ideology, bzip2 does only one thing - it compresses the file. To archive several files or directories, it must be used together with the utility TAR... Tar archives files into one, while bzip2 compresses them. Therefore, the extension for such archives is .tar.bz2
    Gzip- utility and algorithm for data compression and decompression. Like bzip2, it does only one thing - it compresses or decompresses a single file. Has a high speed of work.
    Deflate- data compression algorithm.
    TAR- (tape archive, archive on magnetic tape) - archive format, utility for working with archives of the same name. Tar does not compress data, it creates one file out of many, which is usually then archived using the gzip or bzip2 algorithm.
    RAR- Paid popular data compression format and program to work with different types archives. Author - Evgeny Roshal.
    Unrar- free unpacker for RAR archives.
    ZIP- Standard, popular data compression format.
    XZ- A data compression format that uses the LZMA compression algorithm. Created as a replacement for lzma. XZ-utils is an implementation of the XZ format in Linux. The TAR archiver, starting from version 1.22, allows creating archives in xz format.
    7z- data compression format using the LZMA compression algorithm.
    p7zip- implementation of 7-Zip archiver for Linux.
    7-Zip- file archiver that supports many compression algorithms. The author is Igor Pavlov. The basic format is 7z using the LZMA algorithm.
    q7z- GUI for the p7zip archiver

    What options did the archivers run with?

    Create RAR archive. Default compression.rar a -r archive.rar files
    Create RAR archive. Fast compressionrar a -r -m1 archive.rar files
    Create RAR archive. Maximum compressionrar a -r -m5 archive.rar files
    Create ZIP archive... Default compressionzip -r archive.zip files
    Create ZIP archive. Fast compressionzip -r -1 archive.zip files
    Create ZIP archive. Maximum compressionzip -r -9 archive.zip files
    Create 7z archive. Default compression7z a archive.7z files
    Create 7z archive. Fast compression7z a -mx = 1 archive. 7z files
    Create 7z archive. Maximum compression7z a -mx = 9 archive.7z files
    Create bzip2 archive. Maximum (default) compressiontar cfj archive.tar.bz2 files
    Create bzip2 archive. Medium compressiontar cf archive.tar files
    bzip2 -vc4 archive.tar> archive.tar.bz2
    Create bzip2 archive. Fast compressiontar cf archive.tar files
    bzip2 -vc1 archive.tar> archive.tar.bz2
    Create gzip archive. Default compressiontar cfz archive.tar.gz files
    Create gzip archive. Maximum compressiontar cf archive.tar files
    gzip -vc9 archive.tar> archive.tar.gz
    Create gzip archive. Fast compressiontar cf archive.tar files
    gzip -vc1 archive.tar> archive.tar.gz
    Create XZ archive. Default compressionexport XZ_OPT = ""
    Create XZ archive. Fast compressionexport XZ_OPT = "- 1"
    tar cfJ archive.tar.xz files
    Create XZ archive. Maximum compressionexport XZ_OPT = "- 9 --extreme"
    tar cfJ archive.tar.xz files

    Add. info
    The time utility was used to measure the time:% / usr / bin / time -f "% U" Bzip2 archives in the maximum compression mode (9) by default, so the default compression was taken as the best, and the average compression was 4 (1 - fastest, 9 is best).
    In some tests, I decided to use ZIP, RAR and 7z in conjunction with the TAR archiver. You will see the results :)
    The results for the 7z and XZ are noticeably different. Although 7z uses LZMA like XZ, I tested them as standalone archivers.
    To create XZ archives, TAR 1.21 uses lzma, and TAR 1.22 uses XZ.
    For TAR to automatically detect the type of archive, use the key a:% tar xaf archive.tar.bz2 When creating XZ archives in TAR, compression options can be specified via environment variable XZ_OPT:% export XZ_OPT = "- 9 --extreme"

    Test number 1. Compression of media files.

    For the 1st test, I put together a large bunch of files that are essentially already compressed. These are mp3, wav, jpg, png, pdf, avi. They all shrink almost equally badly :)
    As a result, I ended up with a directory filled with all kinds of yummy:
  • One music album in MP3 (60MB)
  • One WAV music file (60MB)
  • Two regular video files (230MB)
  • Five DJVU and PDF files(130MB)
  • Lots of (20) JPEGs and PNG files(50MB)
  • Total 537MB.



    At maximum compression, RAR has the best results - it compressed data unexpectedly better and faster than others. Although 1029 seconds vryatli want to spend in order to save 40MB. Gzip and ZIP compressed not so well, but 10 times faster than RAR and XZ.
    On medium compression, RAR wins the "slow but good" category, while Gzip and ZIP wins the "not so good, but very fast" category. Bzip2 has such an average result - it seems to have compressed quite quickly, but only slightly better than Gzip.
    In the fast mode, the size of the archives turned out to be almost the same, but the time was not quite. Here, regular ZIP is clearly in the lead, which compressed data as well as gzip and rar, but made it much faster. In general, the conclusion is this: if you compress media files, i.e. files that are already compressed and you are short on time - use Gzip or Zip. If you have enough time - Rar or 7z / xz.
    Bzip2, by the way, took a very long time to unpack its archives compared to others, while RAR probably has the best result in terms of speed / quality.

    Test number 2. Compressing binary files

    In the 2nd test binaries will be compressed. I just copied the heaviest ones from my / usr / bin / directory.
    Available: 100 binaries with a total size of 167MB

    At maximum compression, 7z performed much better than XZ - it squeezed faster and better. The fastest was Zip - faster than Gzip with the same size archives.
    In the medium compression mode, everything is the same, but there is no point in using Bzip2 - it only compresses slightly better than Gzip / ZIP, but noticeably slower.
    In fast mode, 7z was again better than the XZ. (Why? They both use LZMA!)
    By the way, 7z in fast mode got 56MB archive in 35 seconds, while Bzip2 in maximum (default) compression mode got 64MB archive in 65 seconds. Those. 7z outperforms Bzip2 in all respects :)

    Test number 3. Compressing a CD Image

    Separately, for some reason, I decided to compress the CD image. It can be safely attributed to the content of test # 1, but I decided to take it out separately, just in case :)
    Available: 1 CD image 614MB

    In the best compression mode, 7z did its job slightly worse, but faster than XZ, while RAR was the slowest. As for Bzip2, I already got the impression that it seems to compress much faster than rar / 7z / xz, but much slower than gzip / zip, while the size of the archive is not much better than that of gzip / zip. If I want to compress something well and I have time for that, I’ll probably go with 7z. If you want to compress files as quickly as possible, I'll go with Gzip or ZIP. Gzip, by the way, has a big bonus over ZIP - it saves all information about file owners and rights, which ZIP does not (like 7z, by the way, but more on that later).
    At medium settings, the size of the archives (as well as the time) turned out to be almost identical to the previous ones.
    But in the fast compression mode, RAR was pleasantly surprised - it compressed faster and better than everyone else. Bzip2 compressed even worse than Gzip / ZIP in fast mode. Bzip2 spent much more time on unpacking the archive than all other archivers. And XZ unpacked the archive much faster than 7z.

    Test number 4. Linux kernel source compression

    One of standard ways check the quality of the data compression algorithm - kernel sources.
    Available:
    Sources linux-2.6.33. This is about 31 thousand files with a total volume of 432MB.
    Since there are a lot of files, I used the RAR solid option. 7z creates a solid archive by default. It was also decided to use tar + rar and tar + zip. The results, by the way, are unexpected :)

    Maximum compression mode: Good results with RAR. True, the TAR + RAR option has less archives than RAR with the "solid" option =)
    Medium compression: Bzip2 suddenly outperformed RAR, outperforming it a lot in speed and compressing almost as well.
    Fast compression mode: Here Bzip2 again compressed better than RAR, although it (Bzip2) was the slowest. The best results, in my opinion, are with 7z.
    Unpacking archives: Archives are compressed as much as possible, RAR unpacked for a very long time compared to others. 7z / XZ was decompressed 10 times faster than RAR, and Gzip was just lightning fast.

    Test number 5. Uncompressed documents

    Text documents like TXT, ODF, DOC. I assume that the results will be similar to test # 4 :)
    Available:
    Mostly doc files... I do not store documents on this computer, so I had to download them from the network, and ODF is more difficult to find. Also, several weighty TXT dictionary files, RTF and HTML files... A total of 66MB.


    Best compression mode: RAR did the best. Bzip2, as always, is somewhere in between.
    Medium Compression Mode: The 7z / XZ files were best compressed, but it took a long time for them. Bzip2 compressed much faster and almost as good as RAR
    Fastest Compression Mode: First time Bzip2 compressed better (though not faster) than 7z / XZ.
    Unpacking archives: An archive compressed in maximum mode was unpacked by RAR for a very long time. In general, this is not the first time. Well, Bzip2, as always, is not the fastest in unpacking archives.

    Test number 6. Lots of small text files - Gentoo Portage

    Available: 116 thousand files with a total volume of 600MB.


    Maximum compression mode: The 7z has the smallest archive, and in time it coped 2 times faster than the XZ. Bzip2 probably has the best speed / compression score
    Medium compression mode: Bzip2, in my opinion, performs better than RAR. The best squeeze is still 7z.
    Fast Compression: XZ has the best result. 7z compressed 6MB better than XZ, but also 21sec slower. Unpacking archives: I think XZ did the best here. RAR, as always, slowly decompresses archives that are compressed as much as possible.

    So, let's summarize... Who is the best archiver in the world?
    I will not give an answer to this question: R I will say one thing - if compression speed is important to you - use Gzip, if you need to compress files as much as possible - use XZ or 7z. Personally, I would go with 7z because it is generally slightly faster at archiving than XZ. But do not forget that archivers such as RAR, ZIP and 7z do not save full information about file owners, rights, etc. RAR you can specify the appropriate settings when creating and unpacking an archive, but it's easier to just create a TAR archive and compress it already. The manual for 7z directly says - to back up the system, first create a TAR archive, and then compress it into 7z.
    It was fun to watch how the TAR + RAR bundle often works better than RAR alone :) In general, TAR creates one file (archive) from many as fast as your HDD, while almost straining the processor.

    Gzip or ZIP? Gzip! The results are the same, but Gzip retains the entire Additional information about files.
    XZ or 7z? If you don't need to keep track of the owners of the files, use 7z. If necessary, create XZ archives via TAR.
    RAR?... To be honest, I expected the worst results from him, but RAR performed well in principle. Unless it is paid;)
    Bzip2?... This archiver gave me ambivalent feelings. On the one hand, it compresses faster than XZ / 7z / RAR, but on the other hand, it compresses only slightly better than Gzip / ZIP and makes it noticeably slower than the latter. In some tests it performed well, in others it squeezed slower and worse than 7z at the most quick settings... It is because of this inconsistency of it that I personally refuse to use it in favor of the 7z / XZ.

    But ultimately it's up to you to decide. Good luck!

    Perhaps these materials will interest you.

    gzip (short for GNU zip) is a computer file compression and decompression (decompression) utility using the DEFLATE algorithm. It is used mainly in UNIX systems, in some of which it is the de facto standard for data compression. It was created by Jean-loup Gailly and Mark Adler. Version 0.1 was first released on October 31, 1992, and version 1.0 in February 1993.

    In keeping with Unix programming traditions, gzip has only two functions: compressing and decompressing a single file; it cannot compress multiple files into one archive. When compressed, a .gz suffix is ​​added to the original file extension. To package multiple files, they are usually first archived into a single file using the tar utility, and then the file is compressed with gzip. Thus, compressed archives usually have the double extension .tar.gz or abbreviated .tgz.

    On the other hand, this feature gives gzip the ability to work with a continuous stream of data, compressing / unpacking them on the fly. This is widely used in UNIX systems: using stream redirection, you can work with packed files as easily as with unpacked ones (unpacking them in memory when reading and packing them when writing); many Unix utilities have built-in support for this mechanism. Recently, gzip has been actively used to compress Internet traffic. Gzip is now supported by most modern browsers.

    In addition, there is a set of utilities for searching, displaying and comparing data in gzip format: zcat, zdiff, zfgrep, zless, zcmp, zegrep, zgrep, zmore.

    Users computer systems sometimes they come across files with the GZ or TGZ extension. A quite natural question arises: how can you open such a file? I would not like to upset readers who work with the Windows operating system ahead of time, but the expediency of opening files in this environment is minimized. And here's the thing ...


    What is GZ permission?

    Files with the GZ extension first appeared back in 1993 with the release of the GZip utility for packing and unpacking files. The files processed by this program using the compression algorithm received this extension. Many, probably, have already realized that the GZip application belongs to the category of archivers. Files created with their help are ordinary archives. But there is one subtle point here. The point is that such archives are used only in UNIX-like systems.

    The GZip utility itself is built into the operating system environment by default. The most interesting thing is that this archiver is present not only in the Linux operating system, but also in the Mac OS X operating systems. Of course, you can open files that have the GZ extension in the operating system. Windows system, but here a completely natural question arises: is it necessary to do this? Indeed, in most cases, the decompressed data still cannot be read in Windows operating systems. There are Windows versions of GZip as well.

    File compression and decompression: algorithm

    Many users may mistakenly think that the GZip program for compressing and decompressing files works exactly the same as the well-known WinZIP package. But this is not at all the case. Initially, the program was tested based on its own DEFLATE algorithm. This algorithm was originally built on a combination of two types of encodings Huffman and LZ77. As you already understood, when compressing the required information, the suffix gz is added to the main name. But this only applies to single files. The thing is that this program does not natively support working with multiple files, which is possible in WinRaR or WinZIP applications.

    In other words, it is simply impossible to pack two or more data packages into one archive. This is due to the fact that the utility uses supplementary annex TAR. As a result, when creating archives, the output is not a file with the GZ extension, but an object with the TGZ extension. The tar.gz variant is also sometimes encountered. In other words, the TAR utility first compresses multiple files into one, which is then processed by the GZip application. This combination of actions, to put it mildly, is not very convenient. The same applies to the process of unpacking data. Decompression of the main archive file and then all other objects are retrieved using the additional TAR utility.

    How to open a file with a GZ extension?

    Now let's talk about how you can open files with the GZ extension. Of course, you can use a "native" utility called GZip for this purpose. There are versions of this program for both UNIX and Windows systems. Since we mostly use the Windows operating system, you can unpack files with this extension using the built-in WinZIP archiver. In addition, the WinRAR, 7-ZIP, Corel WinZIP, E-merge WinAce software packages are quite effective.

    Virus

    Sometimes there are situations when viruses and malicious objects are disguised as archives with the GZ extension. In most cases, the virus replaces the GZ extension with something similar, for example, GAZ. There are cases when malware and viruses enter the system as a file with the GZ extension. Antivirus software designed to work with the Windows operating system may not always be able to detect in this case potential threat... Therefore, when identifying suspicious objects, you need to be very careful. Better to use powerful packages for virus scanning rather than free antiviruses like Avast. As a last resort, scan your computer with a portable utility like KVRT for threats.

    Conclusion

    That is all the information related to working with GZ archives. Many users have probably already figured out how to work with such data. But first, you need to clarify the situation. You can open such an archive even in the Windows operating system, but is it worth doing? After all, the information packed in it, which relates exclusively to UNIX systems... It will be impossible to work with such files later. For example, let's look at the image file with the DMG extension, which was created in the operating environment. Mac systems OS X. You can extract the contents of such a file using UltraISO programs... But then what to do with the extracted information? The same situation is with the GZ data format. Even if the user works with operating LINUX systems and Mac OS X, it is easier for him to install Win RAR, which can be used without the use of additional programs.

    - The extension (format) is the characters at the end of the file after the last point.
    - The computer determines the type of file precisely by the extension.
    - By Windows default does not show file name extensions.
    - Some characters cannot be used in the file name and extension.
    - Not all formats are related to the same program.
    - Below are all the programs with which you can open the GZIP file.

    HaoZip is a Chinese clone of the popular Winrar archiver, both in terms of functionality and the interface as a whole. The archiver can work with all popular formats, including 7Z, ZIP, TAR, RAR, ISO, UDF, ACE, UUE, CAB, BZIP2, ARJ, JAR, LZH, RPM, Z, LZMA, NSIS, DEB, XAR, CPIO, SPLIT, WIM, IMG and others. In addition, using Haozip, you can mount ISO images and view pictures through the built-in viewer, which is a very useful feature for archivers. As for the interface, the Chinese developers have done a good job here. They not only copied the design and functionality from the Winrar archiver, but also added ...

    WinRAR is a well-known program designed to work with archives. The utility includes a wide range of built-in capabilities. WinRAR compresses data faster than competitors, saving disk space and user time. Supports well-known archive formats and is suitable for compressing multimedia files. Automatic recognition file format, special data compression algorithm and optimal packing method are the advantages of the application. WinRAR can compress executable, multimedia files and libraries of object modules. The application allows you to divide archives into separate volumes and save them on different storage devices.

    When developing the FreeArc archiver, the author decided to create a program that compresses files at maximum speed. This required best qualities compression libraries LZMA, PPMD ​​and GRZipLib. During the packaging process, the archiver generates files by type and compresses them using the most suitable algorithm. When working, the archiver uses more than ten different algorithms and filters. If we compare this with common archivers, then 7-zip has only three algorithms, while RAR uses only seven algorithms. The archiver is easily adaptable for installation on various systems. It is designed on an open platform giving in ...

    7-Zip is a well-known open source archiver. This feature allows you to make changes to the structure of the program by adding certain functions to it. The program is clear and simple interface and has unique algorithms to speed up data archiving and decompression. Also, this program can perform standard operations with the archive, for example, you can set a password for a file, or set the compression ratio of the archive. Also, if necessary, you can create a self-extracting archive with the necessary parameters, which are set in special comments to the archive.

    ExtractNow is convenient program, which allows you to unpack zipped files quickly enough: just by pressing one button. This option is especially convenient for those users who regularly have to unpack a lot of files. The only drawback is that the program does not support creating archives. is exclusively an unpacker (high-quality and convenient), not an archiver. To unpack the file, you need to drag the archives into the program window and click the Extract button. Supports popular archive formats. Thus, the program can unpack all popular and most commonly used ...

    Simplyzip - convenient archiver with all the necessary functions that most users use. The program works with almost all popular archive formats, including rar or zip. However, due to the fact that the developers winRar programs do not allow the use of algorithms in their format, Rar archives can only be unpacked or viewed. However, Simplyzip supports the installation of various modules and plugins that can expand the functionality. this archiver... If you install the necessary plug-in, then the program can be taught to create both Rar archives and archives of other formats ...

    Every year, for the improvement and greater convenience of users, the developers of various computer software release many interesting, convenient and quality programs that significantly help in the work. One of these programs is the latest development of the WinArc archiver. This utility is available for general use and with its help it will not be difficult for you to zip or unzip any file you are interested in. This utility, while running, uses all the processor cores, thereby speeding up the archiving process. In addition, it has the function of adjusting the use of RAM, which will significantly reduce the load on your computer ...