Sponsored Content
Full Discussion: Compress.exe Question
Top Forums UNIX for Dummies Questions & Answers Compress.exe Question Post 302283569 by pludi on Tuesday 3rd of February 2009 02:26:29 PM
Old 02-03-2009
Compress uses the LZW algorithm, which has it's best results if characters have a high repetition. If you have a file consisting only of the letter 'A' repeated 1048576 times (=1M), the compressed file will only have about 1K. If the files are almost random, compression efficiency will go down.
Also, very small files will have almost no perceived compression, as any reduction in size might be canceled by overhead.
You could try gzip or bzip2 on those files.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

.exe file

Hello all, how to run windows .exe file in Linux and vice the versa (3 Replies)
Discussion started by: rajashekaran
3 Replies

2. Programming

how To edit exe to insert a serial no wich can be usd by runing exe

At time of installation I have to open the resource. and i have to insert a string serial number in the exe. please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies

3. SuSE

does exe

does exe files works withe suse am new n linux system and were can i find msn 4 linux (2 Replies)
Discussion started by: abdulla
2 Replies

4. UNIX for Dummies Questions & Answers

.exe files

how to open .exe file in freebsd system.My work is to run a growth.exe(created by growth.c turbo c 3.0 file).how to run that exe file in freebsd system?Thanks in advance help me (8 Replies)
Discussion started by: kumarangopi
8 Replies

5. Programming

running exe

how we can run the exe when the system starts. (2 Replies)
Discussion started by: phani_sree
2 Replies

6. Programming

exe

Is it possible to extract c program,from its executable file(.exe)? i mean we dont have program but its exe file only which runs,can we retrieve the program? if yes how? if no why? (2 Replies)
Discussion started by: unknown9
2 Replies

7. UNIX for Dummies Questions & Answers

Issue: Compress in unix server and FTP to windows and open the compress file using Winzip

Hi All ! We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows. I have used the utility ZIP like the below. zip -e <newfilename> df2_test_extract.dat but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies

8. Programming

How to build .exe from c

All, I have never comipled C code before and would appricaite if anyone could tell me how to build a .exe from a C program. Thanks in advance. (5 Replies)
Discussion started by: thana
5 Replies

9. Shell Programming and Scripting

find and compress question

I am trying to accomplish follow 1- search $dir_find for \*.txt\* 2- exclude 2 directories $dir_find/abc/* and $dir_find/fit* 3- compress find result 4- move all compressed file to different directory Here is what I have tried. How/where can I add mv?? Can I add to same line/command? ... (1 Reply)
Discussion started by: Jang
1 Replies

10. Programming

exe

hello everyone, could somebody tell me where can i find some good exercises on signals,processes and threads? actually i need to find some solved exercises in system programming. tnx (4 Replies)
Discussion started by: micy
4 Replies
GZCOMPRESS(3)								 1							     GZCOMPRESS(3)

gzcompress - Compress a string

SYNOPSIS
string gzcompress (string $data, [int $level = -1], [int $encoding = ZLIB_ENCODING_DEFLATE]) DESCRIPTION
This function compresses the given string using the ZLIB data format. For details on the ZLIB compression algorithm see the document "ZLIB Compressed Data Format Specification version 3.3" (RFC 1950). Note This is not the same as gzip compression, which includes some header data. See gzencode(3) for gzip compression. PARAMETERS
o $data - The data to compress. o $level - The level of compression. Can be given as 0 for no compression up to 9 for maximum compression. If -1 is used, the default com- pression of the zlib library is used which is 6. o $encoding - One of ZLIB_ENCODING_* constants. RETURN VALUES
The compressed string or FALSE if an error occurred. EXAMPLES
Example #1 gzcompress(3) example <?php $compressed = gzcompress('Compress me', 9); echo $compressed; ?> CHANGELOG
+--------+-----------------------------+ |Version | | | | | | | Description | | | | +--------+-----------------------------+ | 5.4.0 | | | | | | | Added $encoding parameter. | | | | +--------+-----------------------------+ SEE ALSO
gzdeflate(3), gzinflate(3), gzuncompress(3), gzencode(3). PHP Documentation Group GZCOMPRESS(3)
All times are GMT -4. The time now is 05:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy