Cheatsheet: Tar
Basic Archiving Commands
Create an archive from a directory
Create a compressed archive using gzip
Create a compressed archive using bzip2
Create an archive from multiple files
Extracting Archives
Extract a tar archive
Extract a gzip-compressed tar archive
Extract a bzip2-compressed tar archive
Extract to a specific directory
Listing & Verifying Archive Contents
List the contents of an archive
List the contents of a gzip-compressed archive
List the contents of a bzip2-compressed archive
Verify the integrity of an archive
Advanced Options
Add files to an existing archive
Delete a file from an archive (use with caution)
Create an archive and split it into multiple parts
Extract a single file from an archive
See also: