Windows Ru he compression tar.gz format

Source: Internet
Author: User
Tags gz file

Windows Ru he compression tar.gz format

Tar.gz is a commonly used format under linuxand unix. you can compress the file into the tar.gz format by using several commands.

However, this format is rare in windows. Mainstream compression tools such as WinRAR and WinZip can be released, but cannot be packaged and generated.

But tar.gz is often used on Linux servers, so many web developers who are used to using Windows may encounter the trouble of compressing the format.

For example, if the tar.gz compressed package is generated in the Windows system, I searched the internet for nothing except complex command lines and open-source software. The "7-zip" software can easily solve this problem.


The procedure is as follows:
I,
Download 7-zipAfter installation, right-click the file you want to package and choose a 7-zip sub-menu bar, similar to the right-click menu of WinRAR and WinZip.

Select "7-zip"-> archive to archive. In the pop-up window, there is a compressed file. There is no tar.gz format in it. It doesn't matter. There is a tar format in it. The first step is to compress it into a tar format.


II,After being successfully packaged as a tar file, you may find that the TAR file package is the same as the original file size. That is to say, the tar file itself is not compressed, but is simply packaged into a separate tar file.

Therefore, you need to do step 2. Right-click the tar file and choose "7-zip"> "add to compressed file ", in the pop-up window, check "compression format options" and find two more options, including "gzip ",

Yes, this step is to compress the tar file into gzip. Select the latest gzippered format to finalize a new tar.gz file.

I tested that it is compatible with various software and there is no problem in uploading to the server. During the entire process, no command line needs to be tapped.

The format and size of the compressed file are as follows:

In this case, tar.gz is finished in windows!

Note:

After 7-zip 9.20 is installed, you can directly select GZIP format to be compressed to GZ format, without the intermediate tar format. I personally tested that

7-zip 9.20 (win_32bit)

7-zip 9.20 (win_64bit)

7-zip 9.20 (Linux/Unix)

Recommendation expansion:

Compression and decompression of tar bz gz and other compressed packages in Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.