LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2014, 04:02 PM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Rep: Reputation: 176Reputation: 176
having difficulty unzipping a zip file


I'm using Xubuntu 14.04 LTS

I put this in the terminal:

sudo apt-get install unzip

Then I made sure my zip file (pycrypto-2.1.0.win32-py2.7.zip) was in the Desktop.

Then from the desktop folder in the terminal I entered:

unzip pycrypto-2.1.0.win32-py2.7.zip

The reply was:

Archive: pycrypto-2.1.0.win32-py2.7.zip
replace pycrypto-2.1.0.win32-py2.7.exe? [y]es, [n]o, [A]ll, [N]one, [r]ename:

I've Googled a lot on this. One guy said once you install the

sudo apt-get install unzip

you can just double click on the file on the desktop. When I do that it just shows the .exe file in the archive manager. But when I leave the archive manager, the Desktop just shows the zip file.

So is the file unzipped?

What I did was drag the .exe file (after the double left clicking and getting the archive manager) onto the Desktop. Does that mean it's unzipped?

I (perhaps the sudo apt-get install unzip had already been there) was able to open the zip file with the archive manager before.

And unzipping and extracting are the same thing, right? If not, what the difference?

I was just exploring some more and when I right click on the pycrypto-2.1.0.win32-py2.7.zip file on the Desktop and choose "Extract here" it shoots the pycrypto-2.1.0.win32-py2.7.exe file onto the Desktop. Is this unzipping it? (Could it be this simple?)

And I am still in the terminal with:

Archive: pycrypto-2.1.0.win32-py2.7.zip
replace pycrypto-2.1.0.win32-py2.7.exe? [y]es, [n]o, [A]ll, [N]one, [r]ename:

I'm assuming I enter:

n

and hit enter. (Because I don't want to replace it.)
Would this be the thing to do?

Thanks very much.
 
Old 12-08-2014, 04:10 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by Gregg Bell View Post
when I right click on the pycrypto-2.1.0.win32-py2.7.zip file on the Desktop and choose "Extract here" it shoots the pycrypto-2.1.0.win32-py2.7.exe file onto the Desktop. Is this unzipping it? (Could it be this simple?)
Yes it is

The message from the first attempt to unzip from the command line suggests that the (unzipped) package was already present in the directory from which you were operating.

I wouldn't think replacing it (or not) would make any difference -- they are both the same file.
 
1 members found this post helpful.
Old 12-08-2014, 04:26 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
A zip file is just an archive that contains other files/directories. To "unzip" the file, means to extract the files/directories contained within so they are normal, readable files on your filesystem.

You did this when you dragged the exe from the file manager to the desktop.

You did this when you right clicked the file and told it "extract here".

You attempted to do this when you typed "unzip file.zip" in the command line, but since you had already extracted it twice before, it came back with a message telling you the exe contained within the zip file had already been extracted, and asked you if you wanted to replace it. Yes/No wouldn't have made any difference, since it's the same file you had already extracted twice before.
 
1 members found this post helpful.
Old 12-08-2014, 06:03 PM   #4
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Thanks Head, Suicidal. Phew. I made a lot of work out of something really simple. Appreciate your help.
 
Old 12-08-2014, 06:55 PM   #5
jross
Member
 
Registered: Apr 2014
Distribution: Xubuntu 14.04
Posts: 164

Rep: Reputation: Disabled
Quote:
I (perhaps the sudo apt-get install unzip had already been there) was able to open the zip file with the archive manager before.
I have Xubuntu 14.04 and yes, you already had that (there was no need to install again).
 
1 members found this post helpful.
Old 12-08-2014, 07:01 PM   #6
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 2,034

Original Poster
Rep: Reputation: 176Reputation: 176
Thanks jross
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting error while Unzipping a UNIX ZIP file sampige_sbr Linux - Software 4 02-21-2011 02:47 AM
Unzipping downloaded .zip file to root folder. r00ster Linux - Newbie 11 09-23-2009 06:17 AM
Unzipping .zip files in linux dr_zayus69 Linux - Software 5 09-27-2004 06:47 PM
Unzipping a .zip file sduffy89 Linux - Software 3 08-25-2004 08:55 AM
unzipping .zip files...how?? Robert0380 Linux - General 2 04-11-2002 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration