The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   Unix Compressed File... How to decompress (http://hintsforums.macworld.com/showthread.php?t=17895)

rmletc 11-25-2003 01:22 PM

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

yellow 11-25-2003 01:30 PM

Need more info..
 
What is it's suffix? .tgz? .gz? .zip? .bzip? .tar? Something else?

rmletc 11-25-2003 01:52 PM

data.z is the file's name.

hayne 11-25-2003 01:55 PM

Try using 'uncompress data.z' in a Terminal window.

rmletc 11-25-2003 02:17 PM

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

yellow 11-25-2003 02:22 PM

Thought.. if .gz is for gnuzip, .z might just be old zip. Try in the Terminal: unzip data.z

rmletc 11-25-2003 02:26 PM

Unzip isn't a command it understands.....

yellow 11-25-2003 02:28 PM

Do: whereis unzip
It should be there..

yellow% whereis unzip
/usr/bin/unzip

Anyway, do this instead:

/usr/bin/unzip data.z

rmletc 11-25-2003 02:33 PM

[richard-lettaus-Computer:~] richardl% /usr/bin/unzip/ DATA.Z
/usr/bin/unzip/: Command not found.

yellow 11-25-2003 02:39 PM

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

rmletc 11-25-2003 02:43 PM

richardl% /user/bin/unzip DATA.Z
/user/bin/unzip: Command not found.

yellow 11-25-2003 02:48 PM

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

rmletc 11-25-2003 02:58 PM

richardl% /usr/bin/unzip DATA.Z
/usr/bin/unzip: Command not found.

yellow 11-25-2003 03:00 PM

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

rmletc 11-25-2003 04:41 PM

Here is what I get

/usr/bin/ssh

10.2.8

Thanks for all the help

hayne 11-25-2003 04:54 PM

/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

yellow 11-25-2003 05:43 PM

That's really odd.. I checked some vanilla Jaguar installs that don't have DevTools and unzip is there. <shrug>

frankko 11-25-2003 06:01 PM

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?

blb 11-25-2003 07:37 PM

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.

zealot-wd 11-26-2003 01:38 PM

well maybe you should do a "file data.Z" and if it says somthing like "compress'd data ...." then just use gunzip for it

aubreyapple 11-26-2003 03:36 PM

The problem with uncompress is that the extension must be upper case Z or it will not work. So, assuming that uncompress is installed, type
uncompress data.Z

Since the file system is case insensitive, you do not need to rename the file for this to work.


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