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/thezipfile.zip”

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

unzip thezipfile.zip

This will unzip the .zip file in the folder.

Unzip to a specific directory

unzip thezipfile.zip –d /folder/folder1/

This will unzip the files to the provided folder.

Be the first to comment

Leave a Reply