Example:
Package all files and folders in the directory /home/wwwroot/files/ into files.zip in the current directory
zip –q –r files.zip /home/wwwroot/files
The above command operation is to convert the absolute address The files and folders are compressed. The relative path directory for compression is given below. For
example , in the Bliux directory, the same effect can be achieved by performing the following operations.
zip –q –r files.zip files For
example, in my files directory, I The zip compression command for the operation is
zip –q –r files.zip *
Explanation of the zip command for packaging compressed files in Centos
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326507134&siteId=291194637
Recommended
Ranking