The extract command.

Unpack an archive next to itself — the archive stays.

archive.ziparchive.extract.zip

Works on: zip, tar, tgz, tar.gz, gz · The command disappears once the job is done · Original backed up first

Extraction as a rename: type extract before the archive's extension and the contents appear alongside it, folder structure intact. The archive itself is never deleted — extraction here is strictly additive.

It covers the formats macOS actually meets: zip, tar, tgz, tar.gz and bare gz. Malicious archives whose entries try to escape the destination folder (the classic zip-slip trick) fail cleanly without writing anything.

Join the beta

Free 7-day trial · 100 files · No credit card · macOS 14+

Questions? Answers.

More commands