tar-compression

Create, extract, and view tar archives with gzip, bzip2, xz, and zstd compression.

50|13|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/chaterm/terminal-skills --skill tar-compression
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tar-compression
Source: https://github.com/chaterm/terminal-skills/tree/main/backup/tar-compression
Command: npx skills add https://github.com/chaterm/terminal-skills --skill tar-compression

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of archiving and compressing files and directories using various tools like tar, gzip, bzip2, and xz, making data management and transfer more efficient.

Core Features & Use Cases

  • Archiving: Create single archive files from multiple files and directories.
  • Compression: Reduce file sizes using gzip, bzip2, xz, and zstd.
  • Splitting: Break large archives into smaller, manageable parts for easier transfer or storage.
  • Use Case: Back up your website files and database dumps, compress them, and split them into multiple parts to upload to cloud storage.

Quick Start

Use the tar-compression skill to create a gzip compressed tar archive of the '/var/www/html' directory named 'web_backup.tar.gz'.

Frequently Asked Questions about tar-compression

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a tar archive with gzip compression for a website backup?

To create a tar archive with gzip compression, use the tar command with the gzip flag to bundle your website files and database dumps into a single compressed file, reducing storage space for backups.

What is the best way to split a large tar archive into smaller parts for transfer?

Splitting a large tar archive involves using the splitting feature to break the compressed file into smaller, manageable parts by size or line count, making it easier to upload to cloud storage or transfer remotely.

Does tar compression support zstd and xz formats?

Yes, tar compression supports multiple formats including gzip, bzip2, xz, and zstd, allowing you to choose the specific compression algorithm that best balances speed and file size reduction for your archiving needs.

How do I extract files from a bzip2 compressed tar archive?

Extracting files from a bzip2 compressed tar archive requires using the tar command with the bzip2 decompression flag, which unpacks the bundled files and directories back to their original uncompressed state.

Why is my tar archive extraction not working and how do I troubleshoot it?

Troubleshooting tar archive extraction issues involves checking for common compression and archive problems, verifying file integrity, and using provided diagnostic steps to resolve errors during the unpacking process.

Can I use tar for incremental backups and remote transfers?

Yes, tar supports incremental backups by tracking file changes and facilitates remote transfers, enabling efficient data management by sending compressed archives directly to remote storage systems.