---
title: "Discussion on \"Check the compression ratio of backup.tar.gz compared to backup.tar. (Use ls -lh to check file sizes)\" | Hashnode"
description: "Discussion on \"Check the compression ratio of backup.tar.gz compared to backup.tar. (Use ls -lh to check file sizes)\". Step 1: Check File Sizes Before and After Compression\nUse the ls -lh command to compare the sizes of backup.tar and backup.tar.gz:\nbashCopyEditls -lh backup.tar backup.tar.gz\n\nStep 2: Note the File Sizes\nExample output:\ndiffCopyEdit-rw-r--r-- 1 user ..."
url: "https://hashnode.com/posts/check-the-compression-ratio-of-backuptargz-compared-to-backuptar-use-ls-lh-to-check-file-sizes/67ebb9ff1412d0ec749afef3"
---

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

Discussion

# [Check the compression ratio of backup.tar.gz compared to backup.tar. (Use ls -lh to check file sizes)](https://cloudcomutingandnetworking.hashnode.dev/check-the-compression-ratio-of-backuptargz-compared-to-backuptar-use-ls-lh-to-check-file-sizes?utm_source=hashnode&utm_medium=feed)

Step 1: Check File Sizes Before and After Compression Use the ls -lh command to compare the sizes of backup.tar and backup.tar.gz: bashCopyEditls -lh backup.tar backup.tar.gz Step 2: Note the File Sizes Example output: diffCopyEdit-rw-r--r-- 1 user ...

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

## Written by

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

@ravishwakarma

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
