cmdxray / commands / unzip

What does unzip do?

extract files from a ZIP archive.

▸ Explain your own unzip command →

unzip examples, explained

$ unzip archive.zip -d dest

  • unzipextract files from a ZIP archive
  • archive.zipan argument passed to the command
  • -dextract into the given directory
  • destvalue for -d

$ unzip -l archive.zip

  • unzipextract files from a ZIP archive
  • -llist the archive contents without extracting
  • archive.zipan argument passed to the command

unzip flags & options

-llist the archive contents without extracting
-dextract into the given directory
-ooverwrite existing files without prompting
-nnever overwrite existing files
-qquiet — suppress the per-file listing
-pextract to standard output (pipe-friendly)
-jjunk paths — don't recreate the archive's directory tree
-xexclude files matching the given name(s)
-vverbose / show archive details

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.