How to unzip a zip file from the Terminal?

Problem

Just downloaded a .zip file from the internet. I want to use the terminal to unzip the file. What is the correct way to do this?

Solution

If the unzip command isn’t already installed on your system, then run:

sudo apt-get install unzip

After installing the unzip utility, if you want to extract to a particular destination folder, you can use:

unzip file.zip -d destination_folder

If the source and destination directories are the same, you can simply do:

unzip file.zip

source: https://askubuntu.com/questions/86849/how-to-unzip-a-zip-file-from-the-terminal

Leave a Comment