文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>tar gzip 怎么一起使用!

tar gzip 怎么一起使用!

时间:2010-04-30  来源:g_hk

How can I extract a tar.gz or .tgz file?
Files with extension tar.gz or .tgz are tar files compressed with gzip. On Unix extract them with:

    gunzip < file.tar.gz | tar xvf -
    gunzip < file.tgz    | tar xvf -

If you have GNU tar you can use the z option directly:

    gtar xvzf file.tar.gz
    gtar xvzf file.tgz


Can gzip compress several files into a single archive?
Not directly. You can first create a tar file then compress it:

    for GNU tar:   gtar cvzf file.tar.gz filenames
    for any tar:   tar cvf -  filenames | gzip > file.tar.gz

Ref: http://www.gzip.org/
相关阅读 更多 +
排行榜 更多 +
Unity Connect

Unity Connect

学习教育 下载
青橙记录本

青橙记录本

商务办公 下载
脑洞惊魂夜

脑洞惊魂夜

休闲益智 下载