Babak K. Shandiz
Babak K. Shandiz's Blog

Babak K. Shandiz's Blog

Living in the Shell #8; unzip

Living in the Shell #8; unzip

Babak K. Shandiz's photo
Babak K. Shandiz
ยทDec 3, 2021ยท

1 min read

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
ย 
Share this