Sixth section file packaging and decompression

Source: Internet
Author: User

I. File packaging and Decompression

On Windows We most common is nothing more than these three kinds, the *.zip *.rar *.7z suffix of the compressed file

In addition to the above three kinds of common commonly used on Linux, there are,,,,,, *.gz *.xz *.bz2 *.tar *.tar.gz *.tar.xz *tar.bz2 briefly introduced as follows

Among them, zip rar the tar most important. These commands and the corresponding decompression commands are described in turn below

1.zip Compressed Packaging program

To use the Zip Package folder:

The above command packs the Shiyanlou home directory into a file and looks at the size and type of the file after packaging

In the first line of the command, the -r parameter indicates that the recursive package contains the entire contents of the subdirectory, and the -q parameters are expressed in quiet mode, that is, not outputting information to the screen, -o indicating the output file, followed by packaging the output filename immediately thereafter. Later use the du command to view the size of the file after packaging (this command is specified later)

Set the compression level to 9 and 1 (9 max, 1 min), RePack:

A parameter is added here to set the compression level -[1-9] , 1 for the fastest compression but a large volume, and 9 for the smallest but most time consuming. The last one -x was to get rid of the zip file we created the previous time, or else it would be packaged in a compressed file this time, Note: Only absolute paths can be used here, otherwise it won't work

2. Unzip the zip file using the unzip command

Will shiyanlou.zip extract to the current directory

Use Quiet mode to extract files to the specified directory

3.rar packed compression command

raris also a commonly used in Windows compressed file format, on Linux can be used rar and unrar tools to create and decompress the RAR compression package

Installation rar and unrar tools

Create a compressed package or add a file to a compressed package from a specified file or directory

To delete a file from the specified compressed package file

View unresolved files

Use unrar unzip rar file

--------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------

Small stove:

Sixth section file packaging and decompression

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.