Package zip files in linux and zip files in linux
Zip [parameter] [package file name] [Package directory path]
Linux zip command parameter list:
-A converts a file to ASCII mode.
-F try to repair damaged compressed files
-H: display the Help Page
-M: after compressing the file, delete the source file.
-N the specified string does not compress the file with the specified character string.
-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.
For example, you can package the/opt/file directory to/opt/file.zip.
# Zip-r/opt/file.zip/opt/file // The-r parameter