Linux Learning Notes (20)

Source: Internet
Author: User

One,Zip compression tool (support compressed directory, compressed files and directories, the original files and directories are not deleted)

Yum Install zip-y installation zip

Zip + Compressed file name + original file name compressed files

-R + Compressed directory name + source directory name compression directory


Yum Install unzip-y installation decompression Unzip

Unzip + compressed files/directories Extract files (because the source file is not deleted, it will prompt whether to overwrite)

-D Specify the decompression path

-L View the list of compressed files, cannot view the directory


Second, thetar packaging tool (does not compress many file sizes is not a compression tool)

Bandwidth is not a byte, is a bit, the transmission of a large file, contains a lot of files and directories, the transmission of a file a file is very slow, then you need to use the TAR packaging tool

-CVF + Package Directory name + package directory (if the package name exists, it will be overwritten directly)

-XVF + Package File Decompression Package (if the file exists, he will not prompt, will be directly overwritten)

-TF viewing the list of packaged files

TAR-CVF + Package file name--exclude + Specify file filter specify file not to pack


Iii.tar Package and compress (gzip bzip2 xz zip can be used in tar)

Zip

TAR-ZCVF + package file name. tar.gz + files that need to be packaged are compressed and packaged

TAR-ZXVF + package file name decompression

bZIP

TAR-JCVF + package file name. tar.bz2 + files that need to be packaged are compressed and packaged

TAR-JXVF + package file name decompression

Xz

TAR-JCVF + package file name. tar.xz + files that need to be packaged are compressed and packaged

TAR-JXVF + package file name decompression


TAR-TF + package file name view Compressed Files directory


Linux Learning Notes (20)

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.