Skip to main content

This short guide explains to you how to extract/unzip .zip archive files to a specific or different directory in Linux.

 

Install zip

sudo apt-get install zip

 

Zip a directory

Zip your folder:

zip -r {filename.zip} {directory}

 

Unzip 

unzip {filename.zip}

 

Extract zip file to a different directory

mkdir -p /tmp/unziped
$ unzip {filename.zip} -d {/directory/path}

 

Related articles

Andrew Fletcher16 Jan 2025
get IP address from terminal OSX
When troubleshooting network issues or configuring devices, knowing your IP address can be essential. Whether you're connected via Wi-Fi, Ethernet, or tethering through a mobile provider, macOS offers powerful built-in tools to quickly identify your IP address. Here's a practical guide tailored to...