简体   繁体   English

多个拆分 tar.gz 文件的 Linux 加入命令

[英]Linux join command for several split tar.gz files

Can someone help me figure out the proper join command or other Linux command to use to recollect all of my tar.gz files into one tar.gz so that I can unzip it.有人可以帮我找出正确的 join 命令或其他 Linux 命令,用于将我的所有 tar.gz 文件重新收集到一个 tar.gz 中,以便我可以解压缩它。 I zipped up a SVN repository.我压缩了一个 SVN 存储库。

OS:操作系统:

Red Hat Enterprise Linux Server release 5.10 (Tikanga)

Command:命令:

split -b 512m svnrepo.tar.gz svn.tar.gz.1

Result:结果:

svn.tar.gz.1aa
svn.tar.gz.1ab
svn.tar.gz.1ac
svn.tar.gz.1ad
svn.tar.gz.1ae
svn.tar.gz.1af

split really just splits (and glob expansion of * is guaranteed to be alphabetical ), so split实际上只是拆分(并且*全局扩展保证是按字母顺序排列的),所以

cat svn.tar.gz.1* > svn.tar.gz

should be fine.应该没事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM