← All commands

extract

Unpack a supported archive

Files

Usage reference

Try an example

extract archive.tar.gz

Syntax

extract [--keep] [--destination <dir>] <archive>
Dependencies
tar; format-specific unpackers when needed

Changes files, packages, Git history or running processes. Review the arguments before running.

Uses Unzip if availableUses Unrar if availableUses 7z if availableUses Bunzip2 if availableUses Gunzip if availableUses Uncompress if available

Examples

  • extract archive.tar.gz