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