gzip/gunzip tar -zcf/-zxvf zip /unzip bzip2/bunzip2 tar -cjf/tar -xjf

rm -rf *

文件****************************.gz
touch kk
gzip kk

gunzip kk.gz   /gzip -d kk.gz


文件夹****************************.tar.gz
mkdir dddd

tar -zcf  dddd.tar.gz  dddd

tar -zxvf  dddd.tar.gz


文件/文件夹****************************.zip
yum install -y unzip zip



touch aaaa
zip aaaa.zip aaaa


mkdir aaaaa
zip -r aaaaa.zip


unzip



文件/文件夹****************************.bz2
yum -y install  bzip2 bzip2-deve


touch ssss
bzip2 -k  ssss
bunzip2 -k  ssss.bz2


touch sssss
tar -cjf  sssss.tar.bz2  sssss
tar -xjf    sssss.tar.bz2

原文地址:https://www.cnblogs.com/smallfa/p/5705847.html