Use of Tar,jar,zip

Source: Internet
Author: User

In the file archive, Linux, I often like to use tar, it can be a folder archive as a file, you can use the specified compression algorithm to compress its archive.

The most commonly used statements are: Tar cvzf target.tar.gz Source

Note that z here is the GZ compression algorithm, when decompression: Tar xvzf target.tar.gz can be.

In Aix, you need to step into the process, first gzip-d target.tar.gz to extract a file: Target.tar

You can then use the tar xvf Target.tar, but if you have a long path in your archive, some older versions of Aix may have permission DENIED, @LONGLINK errors,

Because the path is too long, the decompression fails, which is related to the tar itself.

In this case, we want to use zip to compress the unpacking package, Zip-r TARGET. ZIP SOURCE

Unzip/jar XVF to unpack the package, but the problem is that using a zip, the permissions in the file will be affected by the target machine umask, it is likely to lose the executable permissions of the Bin/shell file, which requires

Features note.

Use of Tar,jar,zip

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.