▲linux Common zip file suffixes
*. Z???????? Compress Program Compressed files
*.bz2???????? BZIP2 Program Compressed Files
*.gz???????? Files that are compressed by the GZIP program
*.tar???????? Tar program packaged data, no compression
*.tar.gz or tgz???? Files packaged and gzip compressed by the TAR program
*.TAR.BZ2???? Files packaged and bzip2 compressed by the TAR program
*.zip???????? Using ZIP compression
*.rar???????? Using RAR compression
?
▲compress [-DCR] [file or directory]
???? Parameter-D???????? The parameters used to decompress
???? Parameter-R???????? can be compressed together with the files in the directory
???? Parameter-c???????? Output compressed data as standard output to screen
???????? Compress file Generation File.z
???????? Compress–c file>file.z
???????? Compress–d file.z or uncompress file.z decompression
?
▲ Compression Decompression Command
gzip [-cdt#] [filename]
???? Parameter-c???????? Output compressed data to the screen, which can be processed by data flow redirection
???? Parameter-D???????? decompressed parameters
???? Parameter-t???????? can be used to verify the consistency of a compressed file to see if the file is error-free
???? Parameter-#???????? Compression level. 1 most bad, 9 best, 6 is the default value
???????? gzip file generates FILE.GZ
???????? Zcat file.gz Read the contents of file
???????? Gzip–d file.gz or gunzip file.gz extract file
???????? Gzip-9-C file > file.gz compress file files with maximum compression ratio and retain original files
???????? Gzip This compression instruction is primarily intended to replace compress, so compress compressed files can also be undone using gzip
bZIP [-cdz#] [filename]
???? Parameter-c???????? Output data generated by the compression process to the screen
???? Parameter-D???????? The meaning of decompression
???? Parameter-Z???????? Meaning of the compression
???? Parameter-#???????? Compression level. 1 most bad, 9 best, 6 is the default value
???????? Bzip2-z file or bzip2 file generates FILE.BZ2
???????? Bzcat file.bz2 Read the contents of file
???????? bzip2-d file.bz2 or bunzip2 file.bz2 extract file
???????? Bzip2-9-C file > file.bz2 compress file files with maximum compression ratio and retain original files
????????. BZ,. bz2,. tbz,. tbz2 all can be extracted using bzip2
tar [-ZXCVJFPP] [file or directory]???????? Packaging commands
???? Parameter-Z???????? Whether you have properties for gzip at the same time
???? Parameter-j???????? Whether to have bzip2 properties at the same time
???? Parameter-x???????? Unlocking a parameter command for a packaged file
???? Parameter-t???????? See the files inside the Tarfile
???? Parameter-c???????? command to create a new compressed file
???? Parameter-v???????? Files are displayed during compression
???? Parameter-F???????? Use a file name. Immediately after F to receive the file name, no additional parameters
???? Parameter-p???????? Use original properties of the original file (attributes will not change according to user)
???? Parameter-p???????? You can use absolute paths
???? Parameter-exclude FILE???????? Do not package file in the process of compression
Zip [-adfmrsuz#] [target file name] [source file name]
???? Parameter-A???????? Adjust an executable auto-unzip file
???? Parameter-D???????? Delete the specified file from the compressed file
???? Parameter-F???????? Try to repair a corrupted compressed file
???? Parameter-m???????? After the file is compressed and added to the compressed file, the original file is deleted and the file is moved to a compressed file
???? Parameter-R???????? Recursively handles all files and subdirectories under the specified directory
???? Parameter-s???????? Include system and hidden files
???? Parameter-u???????? Replace newer files in compressed files
???? Parameter-Z???????? Add a comment to a compressed file
???? Parameter-#???????? Compression level. 1 worst, 9 best
Zipinfo [-LHMTZ] [compressed file] [file ...]
???? Parameter-l???????? List file names only
???? Parameter-H???????? List only the names of compressed files
???? Parameter-M???? If the information content is more than one screen, it is listed in a way similar to the more instructions
???? Parameter-t???????? Lists only the number of files contained within the compressed file, the file size and compression ratio before and after compression
???? Parameter-Z???????? If there is a comment inside the compressed file, the comment is displayed
Unzip [-LTVMP] [. zip] [file] [-D directory]
???? Parameter-l???????? Display files contained within a compressed file
???? Parameter-t???????? Check that the compressed file is correct
???? Parameter-v???????? Show details of execution
???? Parameter-M???? Send the results of the output to the more program processing
???? Parameter-p???????? < password > Use the zip password option
Compression and packaging of Linux files