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
Top comments (1)
Nice examples!