Zip

1
2
zip -q -r html.zip /home/html
unzip file.zip

Tar

1
2
3
4
5
6
7
8
9
10
11
12
13
tar -cvf jpg.tar *.jpg
tar -czf jpg.tar.gz *.jpg
tar -cjf jpg.tar.bz2 *.jpg
tar -cZf jpg.tar.Z *.jpg
tar -xf /root/test.tar.xz -C /root/
tar -cJf openvpn-2.3.5.txz openvpn-2.3.5

tar -xvf file.tar
tar -xzvf file.tar.gz
tar -xjvf file.tar.bz2
tar -xZvf file.tar.Z
tar -cJvf test.tar.xz test/
tar xJvf openvpn-2.3.5.txz

Xz

1
2
xz -d abc.xz
tar -cvf - openvpn-2.3.5 | xz -zv > openvpn-2.3.5.tar.xz

Rar

1
2
rar a jpg.rar *.jpg
unrar e file.rar //解压rar

Gz

1
2
gzip -d FileName.gz
gzip FileName

Bz2

1
2
3
bzip2 -d FileName.bz2
bunzip2 FileName.bz2
bzip2 -z FileName

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way