LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-22-2009, 07:49 PM   #1
randyic
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora
Posts: 5

Rep: Reputation: 0
Question Where do I find the results of unpacking a file with Gunzip?


I need to pull a file out of a tar.gz package so I ran Gunzip nameoffile.tar.gz. All seemed to go well but I have no idea where to find the files that were uncompressed. I know that is probably a stupid question but I just don't know what else to do. All help would be appreciated.

Randy
 
Old 04-22-2009, 07:58 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It isn't in the directory you gunzipped in?

You don't need to gunzip it first in any case - tar can do that for you.
 
Old 04-22-2009, 08:00 PM   #3
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
Quote:
Originally Posted by randyic View Post
I need to pull a file out of a tar.gz package so I ran Gunzip nameoffile.tar.gz. All seemed to go well but I have no idea where to find the files that were uncompressed. I know that is probably a stupid question but I just don't know what else to do. All help would be appreciated.

Randy
files extracted will automatically be in the current directory where you extracted the file. . .unless you placed a parameter wherein it will be extracted into another directory
 
Old 04-22-2009, 08:11 PM   #4
randyic
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
No, it isn't in the directory I unzipped it in. I don't know what happened to it. I was just thinking that I should tell you what I need to do then you might be better able to help me.
I need to pull one or two files out of the package, I would like to just see what files are in there and then pull them out. Can you tell me the best way to do that?
Also I thought I had to use gunzip to unpack a tar.gz. package. I will try tar.

Thanks
 
Old 04-22-2009, 08:20 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
try

tar -tf filename

to list the contents

tar -xvf filename file1 file2

to extract files 1 and 2
 
Old 04-22-2009, 08:36 PM   #6
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
Quote:
Originally Posted by randyic View Post
No, it isn't in the directory I unzipped it in. I don't know what happened to it. I was just thinking that I should tell you what I need to do then you might be better able to help me.
I need to pull one or two files out of the package, I would like to just see what files are in there and then pull them out. Can you tell me the best way to do that?
Also I thought I had to use gunzip to unpack a tar.gz. package. I will try tar.

Thanks

oh okay. . . I have not tried that. since i have KDE, i just double click the zipped file then copy/browse the file i want
 
  


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
[SOLVED] gunzip: [file] has more than one entry -- unchanged checkmate3001 Linux - Software 6 12-13-2013 04:45 AM
Unpacking a .tar.bz2 file njschroe Linux - Software 1 01-31-2005 03:25 PM
unpacking tar file Longinus Slackware 4 12-14-2003 02:04 AM
How to install a .gz file after using gunzip lel800 Linux - Newbie 6 10-10-2003 08:16 PM
unpacking a (.sh) file extention. troycus Linux - Newbie 2 10-07-2003 09:52 PM


All times are GMT -5. The time now is 10:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration