ubuntu

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
--------------------------------------------
unzip FILE_NAME.zip
>> It means the source and destination folders are same

# To unzip a zip file to a target location
------------------------------------------
unzip file.zip -d /path/to/destination_folder

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?