Linux Zip encrypted compression __linux

Source: Internet
Author: User
Tags create directory

A recent need to provide the merchant data file zip after the partner download, in order to prevent data leakage in the zip when the encryption, the use of the following command:

[root@w01 groupon_cn]# zip-p Yule Shop_20160303.zip/home/filesystem/haibo/output/shop/20160303.txt

Where Shop_20160303.zip is the generated compressed file,/home/filesystem/haibo/output/shop/20160303.txt is the file that needs to be compressed.

Now using the unzip command to extract the Shop_20160303.zip file, you will be prompted to enter the password, as follows:

Finally, attach the zip command manual
zip [parameters] < package > < source
Use zip format to package files
-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 properties
-m compresses and joins compressed files, deletes the source file
-< compression level > 1~9, the larger the number, The higher the compression rate
-F tries to repair the corrupted compressed file
-T check that every file in the backup file is correct
-Q does not show instructions to perform the procedure
-G compresses the file to append to the existing compressed file instead of creating a new compressed file
-u update Compress the file within the package
-F to update the compressed package. If the eligible file is not included in the compressed package, then compress the
-$ to save the first volume label for the disk where the file is compressed
-j save only the file name and its contents
-D Compressed file does not create directory name
-i < expression > compressed directory, compress only Eligible files
-x < expression > exclude eligible Files
-n < filename suffix > Exclude specified file name suffix file
-B < Cache path > Specify temporary files directory
-d < expression > Deletes the specified file from the compressed file
-T < date time > sets the date of the compressed file to the specified date
-O to compress files with the latest change time in the file. Set the time of the compressed file to the same as the file
-A to adjust the automated uncompressed file that is executable br>-C adds comments for each compressed file
-Z adds comments for compressed files
-K uses MS-DOS compatible file names.
-L replaces the LF character with the LF+CR character when compressing the file.
-ll The LF+CR character to the LF character when compressing the file.

Unzip [parameters] < compressed files > [files to be freed in compressed packages]
Extract Zip Compressed package file
-p < password > zip zipped password
-D < path > Specify the decompression path
-N decompression does not overwrite the original file
-F overwrite the original file
-O without asking, directly overwrite the original file
-u overwrite the original file, and unzip the other files in the compressed file into the directory
-l display the files contained in the compressed file br>-T checks to see if the compressed file is correct
-Z Displays the compressed package comment
-Z unzip-z equals the Execute zipinfo Directive
-j does not process compressed files in the same directory path
-C compressed file names are case-sensitive
-L will Press Reduce all file names in a file to lowercase
-s to convert a space in the file name underline
-X to preserve the original Uid/gid
-Q execution Without any information
-V execution is to display detailed information
-C to display the results of the decompression to the screen On the screen, and make the appropriate conversion to the character
-P is similar to the-C parameter, will unzip the result to display to the on-screen, but does not perform any conversion
-A to make the necessary character conversion to the text file
-B do not convert character to text file
-x < expression > Rilly exclude the specified file in the compressed package
-m to send output to more program processing

Related Article

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.