Here we specified-I 'gzip -9'as the compression program to use, and we dropped the-zoption (as we are now specifying a specific custom program to use instead of using the built-in tar GZIP configuration). The result is that we 12 bytes less as a result of a better (but generally s...
-a, --auto-compress use archive suffix to determine the compression program -I, --use-compress-program=PROG filter through PROG (must accept -d) -j, --bzip2 filter the archive through bzip2 -J, --xz filter the archive through xz --lzip filter the archive through lzip --lzma filter th...
-a, --auto-compress use archive suffix to determine the compression program -I, --use-compress-program=PROG filter through PROG (must accept -d) -j, --bzip2 filter the archive through bzip2 -J, --xz filter the archive through xz --lzip filter the archive through lzip --lzma filter th...
在Linux 中,可以使用tar命令把多个文件、目录打包到指定的归档文件里面。 要注意的是,tar命令默认只是把多个文件打包放到一起,不会对文件进行压缩,所以打包后的文件大小并不会变小,由于添加了一些 tar 格式的文件信息,甚至可能会变大。 如果想在tar命令中进行压缩、或者解压缩操作,需要提供对应的选项参数。后面会具...
compression program -z, --gzip, --gunzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress Local file selection: --add-file=FILE add given FILE to the archive (useful if its name ...
(must accept -d) -j, --bzip2 filter the archive through bzip2 -J, --xz filter the archive through xz --lzip filter the archive through lzip --lzma filter the archive through lzma --lzop --no-auto-compress do not use archive suffix to determine the compression program -z, --gzip, ...
#默认选项压缩[root@ubuntu2204 ~]#compress fstab[root@ubuntu2204 ~]#lsfstab.Z#解压缩[root@ubuntu2204 ~]#uncompress fstab.Z[root@ubuntu2204 ~]#lsfstab#显示过程[root@ubuntu2204 ~]#compress -v fstabfstab: -- replaced with fstab.Z Compression: 33.88%#解压缩[root@ubuntu2204 ~]#compress -dv...
The GNU tar command included with Linux distributions has integrated compression. It can create a .tar archive and then compress it with gzip or bzip2 compression in a single command. That's why the resulting file is a .tar.gz file or .tar.bz2 file. ...
Compressing files and directories is one of the most basic functionalities of an operating system. On Linux, the standard format for creating a compressed file is Tape Archive or tarball, or simply TAR. You can also apply further compression using gzip and bzip2 to create TAR.GZ and TAR.BZ2...
ExcludeFILE:donotpacktheFILEintheprocessof compression! Example: Example1:wrapallthefilesintheentire/etcdirectoryas /tmp/etc.tar [root@linuxtar-cvf/tmp/etc.tar/etc~]#<==pack,not compressed! [root@linuxtar-zcvf/tmp/etc.tar.gz/etc~]#<==package, withgzipcompression [root@linuxtar-jcvf/tmp/...