【Linux系统指令】linux压缩解压指令总结
程序员文章站
2022-12-10 16:50:23
格式
压缩
解压
tar
tar cvf FileName.tar DirName
tar xvf FileNa...
格式 | 压缩 | 解压 |
---|---|---|
tar | tar cvf FileName.tar DirName | tar xvf FileName.tar |
gz | gzip FileName | gunzip FileName.gz |
.tar.gz | tar zcvf FileName.tar.gz DirName | tar zxvf FileName.tar.gz |
.tgz | tar zcvf FileName.tar.gz DirName | tar zxvf FileName.tar.gz |
.tar.xz | tar -Jcvf FileName.tar.xz DirName | tar -Jxvf FileName.tar.xz |
.bz2 | bzip2 -z FileName | bunzip2 FileName.bz2 |
.tar.bz2 | tar jcvf FileName.tar.bz2 DirName | tar jxvf FileName.tar.bz2 |
.bz | ? | bunzip2 FileName.bz |
.tar.bz | ? | tar jxvf FileName.tar.bz |
.Z | tar Zcvf FileName.tar.Z DirName | tar Zxvf FileName.tar.Z |
.zip | zip FileName.zip DirName | unzip FileName.zip |
.rar | rar a FileName.rar DirName | rar x FileName.rar |
.lha | lha -a FileName.lha FileName | lha -e FileName.lha |
.rpm | ? | rpm2cpio FileName.rpm |
.deb | ? | ar p FileName.deb data.tar.gz |