Search code snippets, questions, articles...

Extract, decompress or unzip a zip file in Ubuntu

To decompress or unzip a zip file in Ubuntu you can use unzip command. If the command is not already installed you need to install it first.
# If unzip command not found
sudo apt-get install unzip

# To unzip the zip file on the same location
>> It means the source and destination folders are same

# To unzip a zip file to a target location
unzip -d /path/to/destination_folder
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

Decompression of zip files requires unzip command to be installed on Ubuntu System. If the command is not installed on the system you can install it using below command.

sudo apt-get install unzip

We have place sudo before apt-get command to prevent the permission denied error.

Was this helpful?