Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

3 Answers

up vote 50 down vote accepted

If you want to extract to a particular destination folder, you can use:

unzip file.zip -d destination_folder
share|improve this answer
5  
and sudo apt-get install unzip if needed. – Steve Bennett Jan 16 at 0:37

It is simple use unzip

unzip file.zip
share|improve this answer

Right click on the file and their is an option extract here if the package needed is installed it will extract to the same location if not it will proceed to prompt you to download the neccessary packages which are about 700kb proceed and your good.

share|improve this answer
7  
The OP wanted to unzip the file via terminal, so right-clicking will not work, although this will work via Nautilus. – Peachy Sep 22 '12 at 14:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.