Typeflag
Typeflag is a field in the header of a tar archive that specifies the type of the file entry. It is a single byte that guides tar and other archive tools on how to interpret the data and how to recreate the entry when extracting. The typeflag helps parsers distinguish between ordinary files, links, devices, directories, and special entries within the archive.
In the POSIX ustar and similar tar formats, the standard values are: '0' (or the ASCII NUL,
There are also nonstandard or vendor-specific extensions used by some tar implementations. For example, GNU tar
Overall, typeflag matters for the correct reconstruction of archives: it instructs tar how to treat the entry’s