Friday, December 11, 2015

Untar Multiple File Archive from Command Line (Linux/OSX)

To untar a multiple file archive eg

archive.tar.gz000
archive.tar.gz001
archive.tar.gz002
archive.tar.gz003

You need to use the cat command (short for concatenate), and then pipe the result through the tar command like so:

cat archive.tar.gz000 archive.tar.gz001 archive.tar.gz002 archive.tar.gz003 | tar -xz
(the above being all in one command)

Cheers

No comments:

Post a Comment