What is the difference between .tar and .tar.gz?

0314

The main differences between .tar and .tar.gz are related to compression:

  1. .tar:

    • This is a tarball, which is an archive file created using the tar command.
    • It combines multiple files and directories into a single file without any compression.
    • The primary purpose is to bundle files together for easier storage or transfer.
  2. .tar.gz:

    • This is a compressed tarball, created by first creating a .tar file and then compressing it using gzip.
    • It reduces the file size, making it more efficient for storage and transfer.
    • The .gz extension indicates that the file has been compressed.

In summary, .tar files are uncompressed archives, while .tar.gz files are compressed archives that save space.

0 Comments

no data
Be the first to share your comment!