Linux command file compression and compression commands

Source: Internet
Author: User

Gzip

[ function Description ]

Compression of files

#gizp is GNU Software, the overall performance is good, Linux system is the preferred compression tool,the tar archive command -Z parameter also uses gzip/gunzip to decompress

[ syntax Format ]

gip[ Options [ files or directories ]

[ option parameter ]

Parameters

Description

-C

Exports the compressed / decompressed content to the device and preserves the source file

-D

Unzip the compressed file

-L

If the destination file is a compressed file, the compressed and uncompressed size, compression ratio, and the name of the uncompressed file are displayed

-T

Testing and checking the integrity of compressed files

-R

If the specified file is a compressed file, the specified directory is recursively found and all of its files are compacted

-V

display file name and compression ratio for each compressed / uncompressed file

-F

If the file's compression / decompression file exists, or multiple links, or compressed data from standard input, compressed data output to standard output, compression / decompression should be forced

-num

Adjusts the speed of the compression with the specified number,1 indicates the fastest -9 is the slowest, the default 6

-best

Same as -9

-fast

Same as -1

Unzip

[ function Description ]

Unzip the file

English xxxx #unzip is a tool with zip reciprocal

[ syntax Format ]

unzip[ parameters [ Compressed files generated by zip ]

unzip[ parameters [ Compressed files generated by zip ] [ specify files to compress ] or unzip[-z][ compressed file generated by zip ]

[ option parameter ]

Parameters

Description

-C

Displays the extracted results in a standard output device and converts the characters appropriately

-L

Display files contained within a compressed file

-T

Check the integrity of compressed files

-V

Show detailed execution procedures

-A

Make the necessary character conversions for a text file

-B

Do not convert text files to characters

-p< password >

Using the zip Password option

Zip

[ function Description ]

Archive Compressed Files

English xxxx #zip is not only a compression tool is also an archive tool, there are many operating systems are supported, the average file compression ratio is 2:1 or 3:1

[ syntax Format ]

zip[ parameter [ compressed name ] [ file or directory to compress ]

[ option parameter ]

Parameters

Description

-B

The location of the staging file

-C

Add a line of comments to new or updated files

-d< file name >

remove a file from a zip file

-F

Repair a corrupted compressed file

-G

Attaching file compression to a zip file

-x< file name or mode >

Specify files that do not need to be compressed

-Z

Add comments to a zip file

Just do a summary if it is wrong, please Daniel criticism advice.

Sincerely salute

Copyright notice

The contents of this summary are all excerpt from "Linux Command complete technical treasure" Zhang Dong

Linux command file compression and compression commands

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.