(1) tar -xvf /path/to/foo.tar
(2) tar -cvf /path/to/foo.tar /path/to/foo/
(3) tar -xzvf /path/to/foo.tgz
(4) tar -czvf /path/to/foo.tgz /path/to/foo/
(5) tar -ztvf /path/to/foo.tgz
(6) tar -xjvf /path/to/foo.tgz
(7) tar -cjvf /path/to/foo.tgz /path/to/foo/
(8) tar -xvf /path/to/foo.tar -C /path/to/destination/
(9) tar -jtvf /path/to/foo.tgz
(10) tar czvf /path/to/foo.tgz --exclude=*.{jpg,gif,png,wmv,flv,tar.gz,zip} /path/to/foo/
(11) tar -z ... -> tar -Ipigz ...
(12) tar -j ... -> tar -Ipbzip2 ...
(13) tar -J ... -> tar -Ipixz ...
(14) tar -cvf [目标文件名].tar [原文件名/目录名]
(15) tar -xvf [原文件名].tar
(16) gzip [原文件名].tar
(17) gunzip [原文件名].tar.gz
(18) tar -zcvf [目标文件名].tar.gz [原文件名/目录名]
(19) tar -zxvf [原文件名].tar.gz
(20) tar -jcvf [目标文件名].tar.bz2 [原文件名/目录名]
(21) tar -jxvf [原文件名].tar.bz2
(22) tar -Jcvf [目标文件名].tar.xz [原文件名/目录名]
(23) tar -Jxvf [原文件名].tar.xz
(24) xz -d ....xz
腾图小抄 SCWY.net v0.03 小抄561条 自2022-01-02访问219711次