Linux under zip command package and unpack

Source: Internet
Author: User
Tags unpack

The basic usage of the Inux Zip command is:

Zip [parameters] [file name after packaging] [packaged directory path]

linux zip command argument list:

< Span style= "LINE-HEIGHT:31.1111PX; Font-size:large; " >-a convert the file to ASCII mode
-h Display Help interface
-m after compressing the file, delete the source file
-n a specific string does not compress a file with a specific trailing string
-o set the latest change time for all files in the compressed file to the time of compression
-q Quiet mode, when compression does not show the execution of instructions
-r all subdirectories and files in the specified directory are processed together
-s contains system files and implied files (S is uppercase)
-t date sets the last modified date of the compressed file to the specified date, with a date format of mmddyyyy

Example:
package All files and folders under this directory as Html.zip in the current directory /home/blinux/html/

Zip–q–r   html.zip/home/blinux/html

The above command operation is to compress the absolute address files and folders. The following is a list of compression relative paths
For example, in Bliux this directory, do the following to achieve the same effect.

Zip–q–r Html.zip HTML

For example, now my HTML directory, I manipulate the zip compression command is

Zip–q–r Html.zip *
The basic syntax for the Unzip command is: Unzip [parameter] Zip file: Extract the Test.zip file in this directory: Unzip test.zip parameter list:-------------list the contents of thecompressed file-V shows the detailed execution process

Linux under zip command package and unpack

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.