[Prev][Next][Index][Thread]
Re: .zip on Linux
Yossi Amon writes:
> >>>>> "Oleg" == Oleg Volkov <oleg@hpcms.co.il> writes:
>
> Oleg> Hi, All
> Oleg> It is first time I see .zip files used in Unix. As you can guess
> Oleg> I mention moz_xx.zip - applet's classes archive.
<snip>
> Oleg> Is anybody hear/see/have/know about how unpack .zip files directly
> Oleg> in UNIX ( I mean Linux off course ) ?
>
> The intuitive answer: /usr/bin/unzip ... probably installed at your machine.
> comes at a1/aaa_base.tgz, (Slackware distribution).
The unintuitive answer is to read the documentation. If I recall
correctly, according to the netscape installation documentation, this
file is supposed to be left in a particular directory *as* *is*.
You're not supposed to unzip it!
Incidentally, don't people know how to track things down on their
systems? In particular, what about apropos (alias man -k)? For
example, on a correctly configured system, one has:
hjstein@blinky:~$ apropos zip
funzip (1) - filter for extracting from a ZIP archive in a pipe
gzip, gunzip, zcat (1) - compress or expand files
unzip (1) - list, test and extract compressed files in a ZIP archive
unzipsfx (1) - self-extracting stub for prepending to ZIP archives
zforce (1) - force a '.gz' extension on all gzip files
zip, zipcloak, zipnote, zipsplit (1) - package and compress (archive) files
zipinfo (1) - list detailed information about a ZIP archive
Alternatively, on any system one has find:
hjstein@blinky:~$ find / -name \*zip\* -xdev 2>/dev/null
/bin/gunzip
/bin/gzip
/usr/X11R6/lib/X11/xfm/pixmaps/app_zip.xpm
/usr/X11R6/lib/X11/xfm/pixmaps/xfm_zip.xpm
/usr/X11R6/lib/X11/xfm/bitmaps/app_zip.xbm
/usr/bin/zip
/usr/bin/zipcloak
/usr/bin/zipnote
/usr/bin/zipsplit
/usr/bin/funzip
/usr/bin/unzipsfx
/usr/bin/zipinfo
/usr/bin/unzip
/usr/doc/gzip-1.2.4-3
/usr/info/gzip.info.gz
/usr/lib/mc/extfs/zip
/usr/local/lib/netscape/moz2_02.zip
/usr/local/share/misc/zipcodes
/usr/man/man1/zip.1
/usr/man/man1/gunzip.1
/usr/man/man1/gzip.1
/usr/man/man1/funzip.1
/usr/man/man1/unzip.1
/usr/man/man1/unzipsfx.1
/usr/man/man1/zipinfo.1
/usr/src/linux-1.2.13/arch/i386/boot/compressed/gzip.h
/usr/src/linux-1.2.13/arch/i386/boot/compressed/unzip.c
/usr/src/linux-1.2.13/arch/i386/boot/compressed/unzip.o
/usr/src/linux-2.0/arch/ppc/boot/compressed/gzip.h
/usr/src/linux-2.0/arch/ppc/boot/compressed/unzip.c
/usr/WWW/server_root/icons/gzip.xbm
/var/lib/games/fortunes/zippy
/var/lib/games/fortunes/zippy.dat
/var/catman/cat1/unzipsfx.1.gz
After this, it should be pretty clear that one should investigate
/usr/bin/unzip and /usr/bin/zip.
Or are people installing fairly minimally configured systems which are
missing alot of the standard tools?
--
Dr. Harvey J. Stein
Berger Financial Research
abel@netvision.net.il
References: