- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
shell命令之解压缩(Decompression of the shell command)
shell命令之解压缩(Decompression of the shell command)
Packing: converting multiple files into a single file, usually tar.
Tar -cf all.tar *.jpg #
This command is to wrap all the.Jpg files into a package called all.tar.
-c means producing new packages,
-f specifies the file name of the package.
Tar -rf all.tar *.gif #
This command is to add all of the.Gif files to the all.tar package.
-r means adding files.
Tar -uf all.tar logo.gif #
This command is to update the logo.gif file in the original tar package all.tar.
-u means to update the file.
# tar -tf all.tar
This command lists all the files in the all.tar package.
-t is the meaning of listing files
# tar -xf all.tar
This command is to resolve all the files in the all.tar package.
-t means to untie
Thats the basic use of tar. For the convenience of users can compress or decompress files at the same time packing and unpacking, tar provides a special function. This is the tar compression program can call the other in the pack or unpack at the same time, such as gzip, bzip2 call.
1) tar calls gzip
Gzip is a compression program developed by the GNU organization, and the end of the.Gz file is the result of gzip compression. The decompression program relative to gzip is gunzip. Tar uses -z in this parameter to call gzip. Heres an example:
Tar -czf all.tar.gz *.jpg #
This command is to make all.Jpg files into a tar package and compress it with gzip to generate a gzip compressed package called all.tar.gz
# tar -xzf all.tar.gz
This command is to release the packages that have been created above.
2) tar calls bzip2
Bzip2 is a more compression compression program,.Bz2 end of the file is the result of bzip2 compression. The decompression program relative to bzip2 is bunzip2. Tar uses -j in this parameter to call gzip. Heres an example:
Tar -cjf all.tar.bz2 *.jpg #
This command is to make all.Jpg files into a tar package and compress it with bzip2 to generate a bzip2 compressed package called all.tar.bz2
# tar -xjf all.tar.bz2
This com
您可能关注的文档
- bb靓汤(BB soup).doc
- bcg矩阵视角下的人力资源业务分类管理新思路2(New idea of classifying and managing human resource service from the perspective of BCG Matrix 2).doc
- bcg矩阵视角下的人力资源业务分类管理新思路1(New idea of classifying and managing human resource service from the perspective of BCG matrix 1).doc
- bcg矩阵视角下的人力资源业务分类管理新思路(New idea of classified management of human resource service from the perspective of BCG Matrix).doc
- bf2固定翼入门和aya有关(BF2 fixed wing entry is related to Aya).doc
- autocad 2004的用户界面(AutoCAD 2004 user interface).doc
- bhc-parkingsys停车场管理系统(Bhc-parkingsys parking management system).doc
- bnb(泡泡堂).doc
- bom断阶原则(Bom断阶原则).doc
- bodyshop(美体小铺).doc
- servlet的生命周期(The life cycle of Servlet).doc
- shengxian(周生贤).doc
- shopping mall的运营管理要点(下)(Operation management points of shopping mall (below)).doc
- shipin(诗品).doc
- silcon dp300e系列ups结构特点与性能优势(上)(Silcon dp300e系列ups结构特点与性能优势 (上)).doc
- sk-ⅱ品牌运作八大缺失(Sk-, eight lack of brand operation).doc
- skinc(skinc).doc
- sli技术(SLI Technology).doc
- smis修改(smis修改).doc
- smt品质(SMT quality).doc
文档评论(0)