Living in the Shell #8; unzip
Babak K. Shandiz
Posted on December 3, 2021
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
andb.txt
.
Extract with overwrite -o
unzip -o x.zip -d output-dir
Extract without overwrite -n
unzip -n x.zip -d output-dir
đ đĒ đ
đŠ
Babak K. Shandiz
Posted on December 3, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.