I tarred a folder and split it into tar.gz files of 200mb when zipping. How can I go about unzipping them? Is there a way I can do this in one command or do I have to do each one separately?
If you do need to create the tar files separately, then it is possible to concatenate a pair of tar files using tar -A , or add files / directories using tar -u . However, if you intend to do this, you need to include the directory paths ... otherwise you will get naming collisions.
You even cannot do it separately.
Just undo what you did in reversed order:
So you do
cat *.tar.gz.* | zcat | tar xvf -
or, even shorter,
cat *.tar.gz.* | tar xvfz -
You can use the bellow :
$ cat *.tar | tar -xvf - -i
cat
command, listed .tar
files, then listed files will extracted with tar -xvf - -i
command.
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