unzip 🎉

Extracts ZIP archive contents.

Test archive integrity -t

unzip -t x.zip

List archive content (short format) -l

unzip -l x.zip

Display exhaustive archive information/content -Zzl

unzip -Zzl x.zip

Extract all files into given path -d

unzip x.zip -d output-dir

Extracts all files into output-dir directory.

Extract specific files

unzip x.zip a.txt b.txt

Extract all, but exclude some files -x

unzip x.zip -x a.txt b.txt

Extracts all but excludes a.txt and b.txt.

Extract with overwrite -o

unzip -o x.zip -d output-dir

Extract without overwrite -n

unzip -n x.zip -d output-dir

About Living in the Shell
Obsessed with doing things in the shell, I’ve decided to share my daily struggles on living in the shell as terse but informative posts.