DEV Community

Cover image for Linux Learning Journey – Day 14: File Compression & Archiving in Ubuntu πŸ§πŸ“¦
Avinash wagh
Avinash wagh

Posted on

Linux Learning Journey – Day 14: File Compression & Archiving in Ubuntu πŸ§πŸ“¦

After learning how to manage permissions safely and effectively on Day 13, Day 14 focused on a core Linux skill used daily by system administrators, DevOps engineers, and cloud professionals: file compression and archiving.

Compression is not just about saving spaceβ€”it’s about efficient storage, faster transfers, backups, and deployments.

πŸ”Ή Why Day 14 Matters

In real-world Linux and cloud environments, you constantly deal with:

  • Log files and backups
  • Application source code
  • Deployment artifacts
  • Data transfers between servers

Compressing files helps to:

  • Reduce storage usage
  • Speed up file transfers (SCP, SFTP, cloud uploads)
  • Bundle multiple files into a single archive
  • Maintain clean and manageable systems

Day 14 introduced the most commonly used compression tools in Linux.

πŸ”Ή Commands I Learned & Practiced

πŸ”Έ zip β€” Cross-Platform Compression

Used to compress files and folders into .zip format.

Why it matters:

  • Works across Linux, Windows, and macOS
  • Easy to share with non-Linux users

Example:

zip -r project.zip project/

πŸ”Έ unzip β€” Extract ZIP Archives

Used to extract .zip files.

Example:

unzip project.zip

πŸ”Έ tar -cvzf β€” Create Compressed Archives (tar + gzip)

One of the most important commands for Linux servers and cloud environments.

  • c β†’ create
  • v β†’ verbose
  • z β†’ gzip compression
  • f β†’ file name

Example:

tar -cvzf backup.tar.gz backup/

Real-world use cases:

  • Server backups
  • Application packaging
  • Cloud deployments

πŸ”Έ tar -xvzf β€” Extract tar.gz Archives

Used to extract compressed tar files.

Example:

tar -xvzf backup.tar.gz

πŸ”Έ gzip β€” Compress Files Quickly

Compresses a file and replaces it with a .gz version.

Example:

gzip logfile.txt

Result:

logfile.txt.gz

πŸ”Έ gunzip β€” Decompress .gz Files

Used to restore compressed files.

Example:

gunzip logfile.txt.gz

βœ”οΈ What This Helped Me Understand

  • Difference between archiving and compression
  • Why tar + gzip is preferred on Linux servers
  • How compression improves backup and deployment workflows
  • When to use .zip vs .tar.gz
  • How these tools are used daily in DevOps and cloud environments

Compression is not optionalβ€”it’s foundational system hygiene.

πŸš€ Day 14 Takeaway

Day 14 strengthened my understanding of Linux file management in real-world systems.

I now feel confident in:

  • Compressing and extracting files efficiently
  • Preparing backups and deployment packages
  • Handling large directories safely
  • Working with common Linux and cloud archive formats

Linux mastery is built on small, practical skillsβ€”and compression is one of them.

πŸ” Efficient storage. Faster transfers. Smarter systems.
🐧 Learn daily. Practice consistently. Grow confidently.

Top comments (0)