Usage of zip and unzip in Linux

Source: Internet
Author: User

From: http://www.ezloo.com/2008/01/linux_zip_unzip.html

 

The basic usage of the zip command is: Zip [parameter] [file 1] [file 2]
Simple Example:
Pack the testfile in this directory into the test.zip file: Zip test.zip test/*. If an absolute path is used in the file, it is also an absolute path in the compressed file. That is to say, if you zip test.zip/home/test/*, the level is also like this in the compressed file.
Parameter List:
-A converts a file to ASCII mode.
-F try to repair damaged compressed files
-H: display the Help Page
-M: After files are compressed, delete the source file.-N: The specified string is not compressed.
-O sets the latest change time of all files in the compressed file to the compression time.
-Q quiet mode. The command execution process is not displayed during compression.
-R processes all subdirectories and files in the specified directory together.
-S contains system files and implicit files (S is capital)
-T date: Set the last modification date of the compressed file to the specified date. The date format is mmddyyyy.

The basic syntax of the unzip command is: unzip [parameter] ZIP file
Simple Example:
Decompress the test.zip file in this directory: unzip test.zip
Parameter List:
-L list the content contained in the compressed file

-V: Detailed Execution Process

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.