How to unzip files in Ubuntu and move them to a specific directory

You can easily unzip zip files in Ubuntu with the unzip package. The unzip package in Ubuntu allows you to unzip “.zip” files which are password protected and more. The tool is very straight forward and it is very easy to use.

How to unzip files in Ubuntu

First of all, you will have to install unzip if it has not been installed already.

You can install unzip by performing the following command in the Ubuntu Terminal window:

sudo apt-get install unzip

Now that unzip has been installed, navigate to the folder where the zip file is located.

You can move through direcotires in the terminal by using the “cd” command

cd “/folder/folder/”

Once you are in the folder which contains the zip file we can perform the following command:


This will unzip the .zip file in the folder.

Unzip to a specific directory

unzip –d /folder/folder1/

This will unzip the files to the provided folder.

Unzip file which contains password

In order to unzip a file which contains a password, you can do;


The next message will ask for the password – provide the password and press enter.