unzip Command Generator
Generate unzip commands to list or extract zip archives
Getting Started with unzip
## What is unzip?
`unzip` lists, tests, or extracts files from a `.zip` archive. The archive name is the main argument; flags control how extraction behaves.
## How to Use
1. **Name the Archive**: the `.zip` to read. 2. **Toggle Flags**: `-l` to list, `-d <dir>` to extract elsewhere, `-o`/`-n` to control overwrite. 3. **Copy & Run**: paste the generated command into your terminal.
Flags & Tips
unzip merges short flags and passes `-d` a target directory:
``` unzip -l archive.zip unzip -d /out archive.zip unzip -o archive.zip ```
### Common flags - `-l` — list archive contents (sizes, dates) without extracting - `-d <dir>` — extract files into the given directory - `-o` — overwrite existing files without prompting - `-n` — never overwrite existing files - `-q` — quiet mode
### Tips - Use `-l` to peek at an archive before extracting. - `-d` is the safe way to extract into a clean folder without cluttering the current directory. - `-o` and `-n` are mutually exclusive: pick one to skip the interactive prompts in scripts.
▶How do I extract into a specific directory?
▶How do I list files without extracting?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee