---
title: "Discussion on \"Compress backup.tar using gzip to create backup.tar.gz. (Check the size before and after compression)\" | Hashnode"
description: "Discussion on \"Compress backup.tar using gzip to create backup.tar.gz. (Check the size before and after compression)\". Step 1: Check the Size of backup.tar Before Compression\nbashCopyEditls -lh backup.tar\n\n\nl → Long listing format\n\nh → Human-readable sizes (KB, MB, GB)\n\n\n\nStep 2: Compress backup.tar Using gzip\nbashCopyEditgzip backup.tar\n\n\nThis will compress backup.t..."
url: "https://hashnode.com/posts/compress-backuptar-using-gzip-to-create-backuptargz-check-the-size-before-and-after-compression/67ea68bc194b8f237ae83192"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Compress backup.tar using gzip to create backup.tar.gz. (Check the size before and after compression)](https://cloudcomutingandnetworking.hashnode.dev/compress-backuptar-using-gzip-to-create-backuptargz-check-the-size-before-and-after-compression?utm_source=hashnode&utm_medium=feed)

Step 1: Check the Size of backup.tar Before Compression bashCopyEditls -lh backup.tar l → Long listing format h → Human-readable sizes (KB, MB, GB) Step 2: Compress backup.tar Using gzip bashCopyEditgzip backup.tar This will compress backup.t...

Mar 31, 2025 · 1 min read · cloudcomutingandnetworking.hashnode.dev  
Read the article

-   [#gzip](https://hashnode.com/tag/gzip)
-   [#unzip](https://hashnode.com/tag/unzip)
-   [#tarfile](https://hashnode.com/tag/tarfile)

## Written by

[Ravi Vishwakarma](https://hashnode.com/@ravishwakarma)

@ravishwakarma

  
[View profile](https://hashnode.com/@ravishwakarma)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
