LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-01-2006, 05:13 AM   #1
raid517
Member
 
Registered: Feb 2002
Posts: 393

Rep: Reputation: 30
How to unzip to a specific directory?


Hi I know this is dumb - but in all the time I have used Linux I have rarely if ever used .zip type compressed files.

In any case having read around I have found that the command to unzip these kinds of compressed files is simple enough. It involves nothing more than doing 'unzip filename.zip'. However I have also found that if I do this in a directory in which I am working which contains a zip file, the zip file will always be uncompressed to my home directory, i.e. '/home/my_user_name/', How can I ensure that when uncompressing zip files that instead of getting uncompressed to my home directory, they get extracted to the current working directory ?

Thanks in advance!

GJ
 
Old 06-01-2006, 05:37 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Code:
unzip -d . <filename>
Reading the output of unzip --help was most enlightening. Try it sometime.
 
Old 06-01-2006, 05:48 AM   #3
raid517
Member
 
Registered: Feb 2002
Posts: 393

Original Poster
Rep: Reputation: 30
Yes and your initial comment was helpful although your susquent comment was less so.

But thanks all the same.

As it happens I am at work and don't have time to read through a long dry manual just to find the answer to a simple question - which is why I rather thought that perhaps it might be a time saver to simply ask.

Moreover I have found that this is happening with all compressed file types, regardless of their extension - which is just plumb out of the ordinary. I know the CLI options for most other file types, so why would they suddenly decide to only extract exlusively to my home directory?

GJ
 
Old 06-01-2006, 06:55 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Quote:
Originally Posted by raid517
As it happens I am at work and don't have time to read through a long dry manual just to find the answer to a simple question - which is why I rather thought that perhaps it might be a time saver to simply ask.
So glad people can do all the work for you then, since your time is more important than ours...

Too many people in this world find it easier and quicker to ask someone else and try and pass on the problem, instead of researching themselves, a few more generations and we'll be mindless zombies.

That said, man and info are excellent ways to discover options you never knew existed.
 
Old 06-01-2006, 07:26 AM   #5
raid517
Member
 
Registered: Feb 2002
Posts: 393

Original Poster
Rep: Reputation: 30
Well you see that's the problem with this world, sometimes I don't know if some people are genuinely willing to help and be nice, or whether they just want to bitch, show off and make someone else feel bad because they are having a particularly bad day. Well now both our days are a little less pleasant than when we first started, so I guess at least we are even on that score too.

No one twisted your arm to comment - and if it is so much effort then in future simply don't.

If I had had had a work collegue beside me I may have asked them (and truth be told it is likely that most normal people would do this too). Unfortunately my boss asked me how to do something and I needed a quick answer and since I know that the majority of people are often only too willing to help and to share their wisdom, I thought this might be a quicker approach.

In any case, unfortunately your suggestion a) didn't work and b) as I said there appears to be some kind of weird bug going on with the Window manager I am using that causes everything (regarless of the file extension) to be decompressed to my home directory, so unfortunately the problem is not as simple as I first envisaged.

But thanks for trying anyway.

GJ

Last edited by raid517; 06-01-2006 at 07:54 AM.
 
Old 06-01-2006, 07:40 AM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Quote:
As it happens I am at work and don't have time to read through a long dry manual just to find the answer to a simple question
The output of 'unzip --help' is around 25 lines. If you can't manage that at work it's time to start looking for a new job sport.
Quote:
I said there appears to be some kind of weird bug going on with the Window manager I am using that causes everything (regarless of the file extension) to be decompressed to my home directory
How do you extract archives? From a GUI or terminal app directly?
 
Old 06-01-2006, 07:52 AM   #7
raid517
Member
 
Registered: Feb 2002
Posts: 393

Original Poster
Rep: Reputation: 30
Again I was pushed for time. Let's not take it further than that. As for 'a new carreer' - well I don't tend to work with the computers at work and the tech guy was off, or I would normally ask him - as usually he doesn't expect me to know everything 'off the bat' as it were and he is on the whole, generally always only too happy to help.

But anyway, I digress. (and hopefully there has been enough digression in this thread already).

As I said this appears to be a window manager issue. Specifically a Rox filer window manager issue - which as it is getting a tad obscure to hope for an answer here, since I am sure not that many people actually use Rox filer, might be better suited to the Rox mailing list. Which is what I now intend to try.

But as I said,

thanks all the same.

Last edited by raid517; 06-01-2006 at 06:49 PM.
 
Old 06-01-2006, 06:40 PM   #8
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Okay, I use ROX Filer but don't try asking then. Whatever.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
unzip all .zip files in a directory tes15 Linux - Newbie 14 08-29-2014 11:46 AM
about unzip to unzip some chinese files' trouble arcow Linux - Software 0 03-24-2006 02:25 AM
Searching a specific directory for a specific extension? RoaCh Of DisCor Linux - Newbie 3 08-13-2005 03:28 PM
Access directory from specific IP mikeshn Linux - General 1 12-19-2003 01:57 PM
Winzip 7, linux unzip error ~central directory not found lanzdale Linux - Software 1 09-11-2003 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:15 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