- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- zip vs gzip
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2002 11:55 PM
тАО11-14-2002 11:55 PM
I tried doing a zip on a .tar file:
#zip -v file.tar
zip warning: missing end signature--probably not a zip file(did you remember to use binary mode when you transferred it?)
#zip -F file.tar
zip warning: file.tar would be truncated.
Retry with option -qF to truncate, -FF to attempt full recovery.
zip error: Zip file structure invalid(file.tar)
Could someone show me how I could apply zip on a .tar file?
I'm able to do a gzip on a .tar file, but I'm having troubles with zip.
What are the differences between gzip and zip?
Can zip handle .tar files? What are the limitations of zip and gzip?
Could someone kindly help me out.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 12:10 AM
тАО11-15-2002 12:10 AM
Re: zip vs gzip
What is zip on hp-ux ? I only know gzip. The message you give seems to be an uncompression message rather than a compression message. Where did you find it ?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 12:11 AM
тАО11-15-2002 12:11 AM
Re: zip vs gzip
Try;
cat file.tar | zip > file.zip
zip isnt commonly used. HP's uses compress, the newew gzip (better compression) and the even newer bzip2 (even better compression). gzip is a bit more robust - you can gzip anything (gzip file, or cat file | gzip > newfile, or gunzip file) but zip is really for windows/PC's. Winzip on windows/PC's understands tar files or gzip files perfectly so there is really no need to use zip. We dont.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 12:29 AM
тАО11-15-2002 12:29 AM
Re: zip vs gzip
I'm executing zip on a HPUX 10.20, which I placed it on /usr/local/bin/. The zip version which I'm running is zip 2.1
Any ideas?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 01:09 AM
тАО11-15-2002 01:09 AM
Re: zip vs gzip
This should create a zip file called test
ALso you can try doing a
#zip test1 file.tar
This should create a test1.zip
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 01:16 AM
тАО11-15-2002 01:16 AM
Re: zip vs gzip
I recommend gzip as winders will be able to decompress it. You can also get better compression with
gzip -9 file
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 01:27 AM
тАО11-15-2002 01:27 AM
Re: zip vs gzip
For tar archives with source files, bzip2 compresses 30% better than gzip -9
Original URL's:
bzip2: http://sources.redhat.com/bzip2/
gzip: ftp://download.xs4all.nl/pub/mirror/gnu/gzip/
zip: http://www.info-zip.org/pub/infozip/
unzip: http://www.info-zip.org/pub/infozip/
zlib: http://www.gzip.org/zlib/
.tar.gz .tar.bz2 .tar.Z .zip .tgz .tbz are all recognized by powerarchiver on the PC (http://www.powerarchiver.com)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 02:07 AM
тАО11-15-2002 02:07 AM
Re: zip vs gzip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 02:32 AM
тАО11-15-2002 02:32 AM
Re: zip vs gzip
Thanks for those useful links. But if I'm not mistaken, zlib uses the gzip compression algorithm, hence, does zlib has better compression rate compared to gzip for large filesystems i.e > 2GB?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 03:06 AM
тАО11-15-2002 03:06 AM
SolutionThe other way round. gzip uses zlib :)
zlib has been updated not so long ago because of some security issues
bzip has a much better compression algorithm, in any case for non-binary files
AFAIK zip/unzip is not actively maintained, and will thus not have the highest compression rate
I'm open for corrections regarding this info :)
[points]