Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-21-2004, 02:24 PM   #1
LQ Newbie
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Exclamation gzip gunzip / unzipping kismet brings freaky friday question for newbie

OK, im a newbie, theres litterly millions of us right? Last night im reading oreilly's running linux and im at the chapter about zipping and unzipping with gzip etc.

wanting to put my learning to the test I attempted to
$gunzip -c kismet-2004-04-R1.tar.gz and I got a very interresting responce. mostly a lot of ???????????????????? in various strings then in the middle there was this snippet of read me and010064000175000001440000000017507530721172014476 Oustar dragonuser Junk, new , traffic-stollen from enlightenment shiny metal theme Alert-stolen from windows version of the game 'Wetrix' kismet-2004-04-R1/wav/junk_traffic.wav 0100644000175000001440000003475007517017107017011 oustar dragornuserRIFF?9WAVE fmt

then there was more garble, lots of ??????????????? in various strings, symbols intersperced with ????? that look like bullets taking up 2 lines high, then I could see parts of my login followed by 3 pages of 41er but the 41 was made from combinations of | and encompased several lines.

ok at this point I would imagine I got even the gurus guessing, no?
I may be a newbie and a hobbiest but Im serious about this and if you take the time to reply I would be greatly appreciative.

when im not hacking on linux im teaching myself c and reading other oreilly books.
Old 09-21-2004, 04:43 PM   #2
Registered: Apr 2004
Location: Outer space :D
Distribution: Gentoo 2005.0 amd64 2.6.14-dfx3
Posts: 203

Rep: Reputation: 30
Well, you see, when you said "gunzip -c kis..." you said it all.

I don't know the O'Reilly books, but there might be a difference between what's written there and what's in your Linux box. The "-c" option tells gunzip to dump the whole data from decompression to stdout. (a.k.a your console). So, what you saw was a perfectly normal .tar archive (something like an archive compressed with the "store" option).

If you had called it without any options, gunzip would've unzipped your tar.gz to a .tar file then it would've removed the original gzip.

You can still play around with the "-c" option...

$gunzip -c kismet-2004-04-R1.tar.gz > kismet-2004-04-R1.tar

...would produce your .tar file w/o deleting the original archive.
Old 09-21-2004, 04:46 PM   #3
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
I don't see an actual question in your post, so I'm just assuming you are wondering what happened.

It sounds like it did exactly what you commanded it to do. "gunzip -c" unzips the file you give it and sends the result to standard output, which is usually your screen. It's the same as using "zcat".

If you have a tar.gz file, you can either "tar -xzf file" to uncompress it, or "gunzip -c file | tar -xf -". tar might not have always had the ability to read a compressed file.
Old 09-22-2004, 01:53 PM   #4
LQ Newbie
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you

Thank you, to the gracious people who took the time to give me a clue. OK now I know I had better put everything else aside and just learn the shells and there arguments.:O)


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
Newbie question about Kismet wifijunkie Linux - Wireless Networking 2 07-15-2005 03:10 PM
Solaris 8 gzip issues- cannot gzip -d lynx sixosix Solaris / OpenSolaris 4 03-13-2005 04:17 PM
Not in gzip format, after attempting gunzip ukrainet Linux - Newbie 5 11-19-2004 08:34 AM
simple gzip question LinuxBlackBox Linux - Newbie 2 02-04-2004 08:06 PM
create symlink with an option,e.g. gunzip & gzip,how? l_9_l Linux - General 1 05-15-2002 04:59 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:00 AM.

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