I have a tar.gz file that is split into two files for example x.tar.gz.00 and x.tar.gz.01. How to combine these two tar files in linux?
I tried with this below command but no success.
zcat X.tar.gz.00 X.tar.gz.01 | gzip -c > X.tar.gz.
It returned
gzip: X.tar.gz.00: unexpected end of file
Thanks.
If you split the file after compressing it, as the error suggests, then just concatenate the files directly:
cat X.tar.gz.00 X.tar.gz.01 > X.tar.gz
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With