MacOS Zip pack encryption and unzip decompression

Source: Internet
Author: User
Tags comments save file
ZIP-RP 1234 Test.zip Test.txt
-R means recursively all subdirectories
-p means the password is 1234.

UNZIP-P 1234 Test.zip//extract to current directory

Description of parameters related to zip and unzip

Zip [parameters] < compression packages > < source files >

Packaging files using zip format
-R recursion, all files and subdirectories under the specified directory are processed together
-S contains system and hidden files
-Y saves the symbolic connection directly, not the file that the connection points to
-X does not save additional file attributes
-M to compress files and add compressed files, delete source files
-< compression level > 1~9, the larger the number, the higher the compression rate
-F attempt to repair a corrupted compressed file
-T check that every file in the backup file is correct
-Q does not show the instruction execution process
-G compresses files and attaches them to existing compressed files instead of creating new compressed files
-U update compressed file in package
-F updates the file in the package. If the eligible file is not included in the compressed package, it is added after compression
-$ the volume label of the disk where the first compressed file is stored
-j only save file names and their contents
Directory name not established in-D compressed file
-i < expression > compressed directory, only the eligible files are compressed
-X < expression > exclude eligible Files
-n < filename suffix > files that exclude the specified filename suffix
-B < Cache path > specify temporary Files directory
-D < expression > delete the specified file from the compressed file
-T < date time > set the date of the compressed file to the specified date
-O Sets the time to change the compressed file to the same file as the file with the latest change time in the compressed file
-A adjusts the executable automatic decompression file
-C comments for each compressed file
-Z Add comments for compressed files
-K uses a file name in MS-DOS-compliant format.
-L replaces the LF character with the LF+CR character when compressing the file.
When-ll compressed files, replace the LF+CR characters with the LF character.

Unzip [parameters] < compressed files > [files to be freed in compressed packages]
Extract Zip Compressed package file
-p < password > ZIP compression package password
-D < path > Specify decompression path
-N uncompressed without overwriting the original file
-F Overwrite existing file
-O Overwrite the original file directly without asking
-U overwrite the original file and unzip the other files in the compressed file into the directory
-L displays files contained within a compressed file
-T check that the compressed file is correct to exclude the specified text in the compressed package
-Z Display Compressed package comments
-Z unzip-z equals execute zipinfo Instruction
-J does not process compressed files in the original directory path
File names in the-C compressed file are case-sensitive
-L Change all file names in compressed file to lowercase
-S converts spaces in file names to underline
Preserve file Original Uid/gid when-X decompression
-Q does not display any information at execution
-V Display detailed information when execution is
-C Displays the uncompressed results to the screen and converts the characters appropriately
-P, similar to the-c parameter, displays the uncompressed results to the screen, but does not perform any conversions
-A to make the necessary character conversions to the text file
-B Do not convert text files to characters
-X < expression > processing of the specified file in the exclude compression package

-M sends output to more program processing


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.