tar, tz, gz

Posted on by Kim


.tar.gz

Compress

tar -zcf folder.tar.gz folder

Decompress

tar -xzf [your-tar-file.tar.gz]


Split

split -b 1000M enterprise-search-8.0.0-beta1.tar enterprise-search-8.0.0-beta1.tar.part

Join

cat enterprise-search-8.0.0-beta1.tar.part* > enterprise-search-8.0.0-beta1.tar.part

Other

If a file ends in .zip (for example, file.zip) type:
unzip file.zip

If a file ends in .tar (e.g., file.tar) type:
tar -xvf file.tar

If a file ends in .gz (for example, file.gz) type:
gzip -d file.gz

If a file ends in .tar.gz (e.g. file.tar.gz) type:
gzip -d file.tar.gz
and then
tar -xvf file.tar

If a file ends in .tgz (e.g. file.tgz) type:
tar -xvzf file.tgz

0 Responses to "tar, tz, gz":