Skip to content

unzip | Cheatsheet

ZIP is an archive file format that supports lossless data compression. A ZIP file may contain one or more files or directories that may have been compressed.

The ZIP file format permits a number of compression algorithms, though DEFLATE is the most common


Install app-arch/unzip

echo "net-dns/dnsmasq auth-dns conntrack dbus dhcp-tools dnssec script tftp" \ 
  > /etc/portage/package/use/dnsmasq
emerge --ask app-arch/pigz

Unzip a zip archive

unzip foo.zip

Unzip multiple zip files

for zip_files in ./*.zip; do 
    unzip -o ${zip_files}
done

Extract 25 rar archive files at once

find . -maxdepth 1 -name '*.rar' -print0 \
    |xargs -0 -I {} -P 25 unrar x {}