compressiontarlzw

tar.Z file format, structure, header


I am trying to figure out the file layout of tar.Z file. (so called .taz file. compressed tar file).

this file can be produced with tar -Z option or using unix compress utility(result are same)

I tried to google some document about this file structure but there is no documentation about this file structure.

I know that this is LZW compressed file and starts with its magic number "1F 9D" but thats all I can figure out. someone please tell me more details about the file header or anything.

I am not interested about how to uncompress this file, or what linux command can process this file.

I want to know is internal file structure/header/format/layout. thank you in advance


Solution

  • A tar.Z file is just a compressed tar file, so you will only find the 1F 9D magic number telling you to uncompress it.

    When uncompressed you can read the tar file header:

    http://www.fileformat.info/format/tar/corion.htm