linux 压缩文件的命令总结
Linux
压缩文件的读取
·??
?*.Z?????? compress
程序压缩的档案;
·??
?*.bz2???? bzip2
程序压缩的档案;
·??
?*.gz????? gzip
程序压缩的档案;
·??
?*.tar???? tar
程序打包的数据,并没有压缩过;
·??
?*.tar.gz? tar
程序打包的档案,其中并且经过 gzip
的压缩!
·??
?
*.zip????
zip
程序压缩文件
·??
?
*.rar????
rar
程序压缩文件
Compress
压缩文件
[root@test /root]#
cp /etc/man.config /root
[root@test /root]#
compress man.config
//
压缩man.config
这个文件
[root@test /root]#
compress -d man.config.Z
? //-d
解压缩这个文件
[root@test /root]#
uncompress man.config.Z
?
//
解压缩这个文件
当你以 compress
压缩之后,如果没有下达其它的参数,那么原本的档案就会被后来的 *.Z
所取代
!
Gzip
压缩文件和
zcat
[root@test /root]#
gzip [-d#] filename
<==
压缩与解压缩
[root@test /root]#
zcat filename.gz?
??? <==
读取压缩档内容
参数说明:
<span