One,Zip compression tool (support compressed directory, compressed files and directories, the original files and directories are not deleted)
Yum Install zip-y installation zip
Zip + Compressed file name + original file name compressed files
-R + Compressed directory name + source directory name compression directory
Yum Install unzip-y installation decompression Unzip
Unzip + compressed files/directories Extract files (because the source file is not deleted, it will prompt whether to overwrite)
-D Specify the decompression path
-L View the list of compressed files, cannot view the directory
Second, thetar packaging tool (does not compress many file sizes is not a compression tool)
Bandwidth is not a byte, is a bit, the transmission of a large file, contains a lot of files and directories, the transmission of a file a file is very slow, then you need to use the TAR packaging tool
-CVF + Package Directory name + package directory (if the package name exists, it will be overwritten directly)
-XVF + Package File Decompression Package (if the file exists, he will not prompt, will be directly overwritten)
-TF viewing the list of packaged files
TAR-CVF + Package file name--exclude + Specify file filter specify file not to pack
Iii.tar Package and compress (gzip bzip2 xz zip can be used in tar)
Zip
TAR-ZCVF + package file name. tar.gz + files that need to be packaged are compressed and packaged
TAR-ZXVF + package file name decompression
bZIP
TAR-JCVF + package file name. tar.bz2 + files that need to be packaged are compressed and packaged
TAR-JXVF + package file name decompression
Xz
TAR-JCVF + package file name. tar.xz + files that need to be packaged are compressed and packaged
TAR-JXVF + package file name decompression
TAR-TF + package file name view Compressed Files directory
Linux Learning Notes (20)