Wednesday, March 18, 2020

.tar.Z

Decompress tar.Z: tar –xZvf file.tar.Z
Compress tar.Z: tar –cZf foo.tar.Z *.bar

————–

Decompress tar: tar –xvf file.tar
Decompress tar.bz2: tar -xjvf file.tar.bz2
Decompress tar.gz: tar -xzvf file.tar.gz

Compress tar: tar –cvf foo.tar *.bar
Compress tar.bz2: tar –cjf foo.tar.bz2 *.bar
Compress tar.gz: tar –czf foo.tar.gz *.bar