Extract ZIP archives
medium risk
Extracts .zip files; -l lists contents without extracting.
| Flag | Meaning |
|---|---|
-l | List contents |
-d | Extract into a directory |
-o | Overwrite without prompting |
-n | Never overwrite |
-t | Test archive integrity |
unzip -l a.zipList first · explain & risk-check →unzip a.zip -d /tmp/outExtract into a separate directory · explain & risk-check →Reference text is hand-written and may be incomplete — check man unzip for your version. Test destructive commands on a non-production system first.