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