Linux zip command explained in detail
-A: Adjust the executable auto-unzip file; -b<工作目录>: Specify the directory where the files are temporarily stored; -c: Annotate each compressed file; -d: Delete the specified file from the compressed file; -D: The directory name is not established in the compressed file; -f: The effect of this parameter is similar to specifying the "-u" parameter, but it not only updates the existing files, but also adds some files to the compressed file if they do not exist in the compressed file. -F: Try to repair the corrupted compressed file; -g: Attach the file to the existing compressed file, instead of creating a new compressed file; -h: online help; -i<范本样式>: Compress only eligible files; -j: Only the file name and its contents are saved, not any directory name. -J: Deletes unnecessary data in front of the compressed file; -k: File name using MS-DOS compatible format; -l: When compressing the file, replace the LF character with the LF+CR character; -ll: When compressing the file, replace the LF+cp character with the LF character; -L: Display copyright information; -m: After compressing the file and adding it to the compressed file, delete the original file, that is, move the file to the compressed file; -n<字尾字符串>: Does not compress files with specific suffix strings; -o: The file with the latest change time in the compressed file shall prevail, and the change time of the compressed file shall be set to the same as the file. -Q: The instruction execution process is not displayed; -r: Recursive processing, which processes all files and subdirectories in the specified directory together; -S: Contains system and hidden files; -t<日期时间>: Set the date of the compressed file to the specified date; -T: Check whether each file in the backup file is correct; -u: Replace the newer file with the compressed file; -v: Display the instruction execution process or display version information; -V: Save the file attributes of the VMS operating system; -w: If the version number is in the file name, this parameter is only valid under the VMS operating system. -x<范本样式>: Exclude eligible files when compressing; -X: does not save additional file attributes; -y: Save the symbolic connection directly, not the file to which the link points, this parameter is only valid on systems such as UNIX; -z: Add comments to the compressed file; -$: the name of the volume on the disk where the first compressed file is stored; -<压缩效率>: The compression efficiency is a value between 1~9. |