Session and utilities
The unzip command
Extracts .zip files and can list their contents without extracting.
Syntax
unzip archivo.zip [-d destino] | unzip -l archivo.zipMost useful options
-lLists the contents without extracting-dExtracts to the given folder-oOverwrites without askingCopy-ready examples
$ printf 'hola\n' > f.txt && zip p.zip f.txt && unzip -l p.zipList the contentsYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- Extracting can overwrite existing files; check with -l first.
FAQ
How do I extract to another folder?
With unzip archive.zip -d folder.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course