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

List archive content (short format) -l

unzip -l

Display exhaustive archive information/content -Zzl

unzip -Zzl

Extract all files into given path -d

unzip -d output-dir

Extracts all files into output-dir directory.

Extract specific files

unzip a.txt b.txt

Extract all, but exclude some files -x

unzip -x a.txt b.txt

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

Extract with overwrite -o

unzip -o -d output-dir

Extract without overwrite -n

unzip -n -d output-dir
Share this