Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 11-25-2003, 01:22 PM   #1
rmletc
Triple-A Player
 
Join Date: May 2002
Posts: 56
Unix Compressed File... How to decompress

I have a file that the finder says is a unix compressed file and Ican't seem to uncompress it. Any thoughts as to how I uncompress it? I have stuffit deluxe 7 and it doesn't do it.

thanks
rmletc is offline   Reply With Quote
Old 11-25-2003, 01:30 PM   #2
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Need more info..

What is it's suffix? .tgz? .gz? .zip? .bzip? .tar? Something else?
yellow is offline   Reply With Quote
Old 11-25-2003, 01:52 PM   #3
rmletc
Triple-A Player
 
Join Date: May 2002
Posts: 56
data.z is the file's name.
rmletc is offline   Reply With Quote
Old 11-25-2003, 01:55 PM   #4
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
Try using 'uncompress data.z' in a Terminal window.
hayne is offline   Reply With Quote
Old 11-25-2003, 02:17 PM   #5
rmletc
Triple-A Player
 
Join Date: May 2002
Posts: 56
It didn't work either, so I assume that the file really isn't that. Any chance you know of a program that can tell me what exactly this file is?
thanks
rmletc is offline   Reply With Quote
Old 11-25-2003, 02:22 PM   #6
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Thought.. if .gz is for gnuzip, .z might just be old zip. Try in the Terminal: unzip data.z
yellow is offline   Reply With Quote
Old 11-25-2003, 02:26 PM   #7
rmletc
Triple-A Player
 
Join Date: May 2002
Posts: 56
Unzip isn't a command it understands.....
rmletc is offline   Reply With Quote
Old 11-25-2003, 02:28 PM   #8
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Do: whereis unzip
It should be there..

yellow% whereis unzip
/usr/bin/unzip

Anyway, do this instead:

/usr/bin/unzip data.z

Last edited by yellow; 11-25-2003 at 02:31 PM.
yellow is offline   Reply With Quote
Old 11-25-2003, 02:33 PM   #9
rmletc
Triple-A Player
 
Join Date: May 2002
Posts: 56
[richard-lettaus-Computer:~] richardl% /usr/bin/unzip/ DATA.Z
/usr/bin/unzip/: Command not found.
rmletc is offline   Reply With Quote
Old 11-25-2003, 02:39 PM   #10
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Quote:
Originally posted by rmletc
[richard-lettaus-Computer:~] richardl% /usr/bin/unzip/ DATA.Z
/usr/bin/unzip/: Command not found.

Not /usr/bin/unzip/... /usr/bin/unzip
yellow is offline   Reply With Quote
Old 11-25-2003, 02:43 PM   #11
rmletc
Triple-A Player
 
Join Date: May 2002
Posts: 56
richardl% /user/bin/unzip DATA.Z
/user/bin/unzip: Command not found.
rmletc is offline   Reply With Quote
Old 11-25-2003, 02:48 PM   #12
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Quote:
Originally posted by rmletc
richardl% /user/bin/unzip DATA.Z
/user/bin/unzip: Command not found.

Not /user/bin/unzip... /usr/bin/unzip

Copy & Paste Me: /usr/bin/unzip DATA.Z
yellow is offline   Reply With Quote
Old 11-25-2003, 02:58 PM   #13
rmletc
Triple-A Player
 
Join Date: May 2002
Posts: 56
richardl% /usr/bin/unzip DATA.Z
/usr/bin/unzip: Command not found.
rmletc is offline   Reply With Quote
Old 11-25-2003, 03:00 PM   #14
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
Alrighty.. what version of OS X are you using? Did you not install the BSD Subsystem when you installed it? For example, what do you get if you do: whereis ssh

yellow% whereis ssh
/usr/bin/ssh
yellow is offline   Reply With Quote
Old 11-25-2003, 04:41 PM   #15
rmletc
Triple-A Player
 
Join Date: May 2002
Posts: 56
Here is what I get

/usr/bin/ssh

10.2.8

Thanks for all the help
rmletc is offline   Reply With Quote
Old 11-25-2003, 04:54 PM   #16
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
/usr/bin/unzip comes from the Developer Tools (as seen from /Library/Receipts/DevTools.pkg)
so I guess that rmletc wouldn't have it.

rmletc, please show us the results of the following two commands in a Terminal window:

file data.z
uncompress data.z
hayne is offline   Reply With Quote
Old 11-25-2003, 05:43 PM   #17
yellow
Moderator
 
Join Date: Jan 2002
Posts: 10,677
That's really odd.. I checked some vanilla Jaguar installs that don't have DevTools and unzip is there. <shrug>
yellow is offline   Reply With Quote
Old 11-25-2003, 06:01 PM   #18
frankko
All Star
 
Join Date: Jan 2002
Location: New York, NY
Posts: 587
Aren't "data.z" files part of Windows InstallShield packages? You know, there's a "setup.exe" file and a bunch of other files. I don't have a Windows machine handy, but from my PC days, but I seem to remember *.z files showing up there.

Where did you get the file you're trying to decompress?
frankko is offline   Reply With Quote
Old 11-25-2003, 07:37 PM   #19
blb
All Star
 
Join Date: Jan 2002
Location: CO, USA
Posts: 908
If you've installed the BSD package, the best way to find out what a file contains is the file command; open Terminal and simply do
Code:
file data.z
Of course, if you don't have the BSD package installed, file isn't installed. If that's the case, answering frankko's question may be of definite help here.
blb is offline   Reply With Quote
Old 11-26-2003, 01:38 PM   #20
zealot-wd
Prospect
 
Join Date: Nov 2003
Posts: 3
well maybe you should do a "file data.Z" and if it says somthing like "compress'd data ...." then just use gunzip for it
zealot-wd is offline   Reply With Quote
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 On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 10:21 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.