- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gzip compression ratio
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
тАО05-09-2002 06:25 AM
тАО05-09-2002 06:25 AM
gzip compression ratio
-William
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2002 06:36 AM
тАО05-09-2002 06:36 AM
Re: gzip compression ratio
Welcome to the forums!
gzip itself has a -l flag that tells you the compressed size, uncompressed size and ratio of a zipped file. E.g. gzip -l
Is this what you want?
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2002 06:40 AM
тАО05-09-2002 06:40 AM
Re: gzip compression ratio
You can capture this info and use it for your reporting.
example
RESULT=`gzip -v file 2>&1 | cut -d " " -f 2`
echo Compressed by $RESULT
Fergus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2002 06:40 AM
тАО05-09-2002 06:40 AM
Re: gzip compression ratio
Warm welcome to the best forums !
# man gzip
This man pages will give you all information you need. Also the -l option gives you the compression ratio.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2002 07:18 AM
тАО05-09-2002 07:18 AM
Re: gzip compression ratio
In general, most text files will compress by an average of roughly 50%, sometimes much more.
"Sparse" files can have a compression ratio over 95%.
Binary file data compression ratios are pretty unpredictable and will vary all over the range.
Files that are already compressed (mpegs, etc.) will not compress any further and may even increase in size if you attempt it.
HTH,
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2002 07:23 AM
тАО05-09-2002 07:23 AM
Re: gzip compression ratio
-William
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2002 07:27 AM
тАО05-09-2002 07:27 AM
Re: gzip compression ratio
There is no fixed thumb rul for the compression raio , actually all teh files ahve empty blanks and repetitive patterns which are remved and only the data is compacted . So if you have a file which has lots of blank spaces it will have a btter compression ratio. Man gzip is the way to go about it.
All the best.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2002 07:30 AM
тАО05-09-2002 07:30 AM
Re: gzip compression ratio
You could 'preview' the gzip by running the following:
gzip -c
This will display the compressed size without requiring any diskspace. gzip is CPU intensive though.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2002 07:49 AM
тАО05-09-2002 07:49 AM
Re: gzip compression ratio
Thanks,
William