Preserving file trees and permissions
TAR stores structure; GZ compresses a single stream.
TAR structure preservation versus gzip single-stream compression.
TAR stores the file tree; gzip compresses it. They are complementary and usually used as tar.gz.
Choose tar.gz when Unix permissions and metadata must survive the archive.
Attribute values come from the reviewed records on each format page.Read the methodology for source and review rules.
Winners are conditional. A format wins only when the stated condition matches your workflow.
Preserving file trees and permissions
TAR stores structure; GZ compresses a single stream.
Source bundles on Unix-like systems
tar.gz is the conventional distribution format.
Single-file transfer compression
GZ compresses one file for transport.
Both are stream utilities
They are usually combined into one archive.