tar and gzip
0%

Packages · Lesson 3

tar and gzip

Learn how to archive files with `tar`, compress streams with `gzip`, and inspect archives before safe extraction.

Archiving and compression solve different problems. An archive combines a directory tree and its metadata into one stream. Compression encodes a stream to reduce its size. A .tar.gz file is conventionally a tar archive whose stream has been compressed with gzip.