Last update at :2024-05-13,Edit by888u
A brief summary of the compression and decompression methods of compressed packages in various formats under Linux. But I didn’t use some of the methods, so it’s incomplete.
.tar
Unpack: tar xvf FileName.tar Packing: tar cvf FileName.tar DirName (Note: tar is packaging, not compression!)
.tar.gz
Extract: tar zxvf FileName.tar.gz Compression: tar zcvf FileName.tar.gz DirName
.zip
Unzip: unzip FileName.zip Compression: zip FileName.zip DirName
.rar
Extract: rar a FileName.rar Compression: rar e FileName.rar rar download: http://www.rarsoft.com/download.htm After decompression, please copy rar_static to the /usr/bin directory (other directories specified by the $PATH environment variable are also acceptable): [root@vpsxt]# cp rar_static /usr/bin/rar
.gz
Extract 1: gunzip FileName.gz Decompression 2: gzip -d FileName.gz Compression: gzip FileName
.bz2
Extract 1: bzip2 -d FileName.bz2 Unzip 2: bunzip2 FileName.bz2 Compression: bzip2 -z FileName
.tar.bz2
Extract: tar jxvf FileName.tar.bz2 Compression: tar jcvf FileName.tar.bz2 DirName
.bz
Extract 1: bzip2 -d FileName.bz Unzip 2: bunzip2 FileName.bz Compression: Unknown
.tar.bz
Extract: tar jxvf FileName.tar.bz Compression: Don’t understand:(
.Z
Unzip: uncompress FileName.Z Compression: compress FileName
.tar.Z
Extract: tar Zxvf FileName.tar.Z Compression: tar Zcvf FileName.tar.Z DirName
.tgz
Extract: tar zxvf FileName.tgz Compression: Don’t understand:(
.tar.tgz
Extract: tar zxvf FileName.tar.tgz Compression: tar zcvf FileName.tar.tgz FileName
.lha
Extract: lha -e FileName.lha Compression: lha -a FileName.lha FileName
Recommended site searches: overseas virtual host space, US server rental, registration query with the Ministry of Industry and Information Technology, domain name transfer, which Hong Kong server is the fastest, free US host, Korean server rental, 30-day virtual host trial, high-defense US server, website Space purchase,
发表评论